Parsing to IE from VBA to HTML Page - DropDown Box Issue

iantowell

New Member
Joined
Jan 16, 2010
Messages
8
Hello,
I am Automatically filling in a WEB Page form and have completed most single line items and are working. They also have a section that has three dropdown boxes and each dropdown box relies on the previous box selections.
(eg. Dropdown 1 has Regions, Dropdown 2 has Provinces and Dropdown 3 has Towns.) - Each are being validated.
[The way it works manually is you click on the dropdown 1 arrow, select your choice. At this time it then unlocks the dropdown 2. When you you click on the dropdown 2 arrow, select your choice. At this time it then unlocks the dropdown 3. etc etc]
I can fill in dropdown 1, it places the information in the dropdown 1 box, but it is not unlocking dropdown 2. (I am using the .focus, then .value= and then .click) but it does not select.
e.g.
Code:
HTMLDoc.getElementById("BregionId").Focus
HTMLDoc.All.BregionId.Value = "11"
HTMLDoc.getElementById("BregionId").Click
1. Is there a command function line that I can use that once I am focused on dropdown 1, I then tell it to open the list and then I select my choice? This would then copy me manually doing it.
2. Is there a better way of doing this?

I am getting my confused. :eek:
 

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.

Forum statistics

Threads
1,214,424
Messages
6,119,400
Members
448,893
Latest member
AtariBaby

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