Excel Post Data to ASP Page

jyan_osu

New Member
Joined
May 6, 2002
Messages
1
Hi
I'm having a problem having a web enabled excel page post it's contents to an ASP page. I am trying to use the Internet Transfer Protocol to do the work and I think I have to be able to go to the page, but it won't open. What I would like is to have IE open the excel page, have the user do the data manipulation, and then when the user clicks on the submit button the excel form it form posts the data to an ASP page as well as opening that page in the same browser window to review the data. Here's the sample of my VBA code doing the work. When I click on the button it just sits there though.
Here is a part of my VBA code for the button:

objInet.Protocol = icHTTP

For Each N In Range("B5", "C28")
If SubmitString <> "" Then SubmitString = SubmitString & "&"
SubmitString = SubmitString & N.Address(False, False) & "=" & N.Value
Next

objInet.URL = "http://localhost/ExcelWriterExample/Process2.asp"

objInet.Execute objInet.URL, "POST", SubmitString, "Content-Type: application/x-www-form-urlencode"
 

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.

Forum statistics

Threads
1,213,549
Messages
6,114,264
Members
448,558
Latest member
aivin

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top