We are using the following vba code to access a web page:
' Create an object of type InternetExplorer
Set objIE = CreateObject("InternetExpl
orer.Appli
cation")
objIE.navigate strUrl
'Here are the two boxes we are trying to automate:
First option box is :
objIE.Document.Forms(0).al
l("ctl00_P
ageContent
PlaceHolde
r_vSubClas
s").Value = 2
'In this case Value = 2 puts "Import Cars" in the BuySell box
'No problem getting the value into the first box...but can't seem to get the first box to post back
'The second box which is hidden until the web page post back is done from the first box
Second option box is:
objIE.Document.Forms(0).al
l("ctl00_P
ageContent
PlaceHolde
r_vClass")
.Value = "2001 Import Cars"
Se have a jpg image of the boxes on the web page
We have attached the full source code of the page.
How can we automate the process....do a post back on the first box, then fill in the second box