VBA to select button then pull down selection on next page

steve216586

New Member
Joined
Feb 27, 2015
Messages
2
Basically I have built an Excel to open an IE page. Now I need to select a button which takes me to another page. There I need to select an item from a pull down and then select the button to submit.

I'm sure this is easy for pros but I'm just getting started and would appreciate any help. I can find the names of the buttons and pull down item. I just don't know how to orderly call them in code so the sequence is complete.
 

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
I found out how to navigate to the page I need so forget about the first part. I also found out how to "tap" a select button. Now I am in need of code to select an item from a drop down. Then I can use my code for "tapping" the select button. Any heop wol dbe appreciated.

This is what I have so far:

Private Sub cmdLoadURLs_Click()
Dim IE As Object
Dim shellWins As New ShellWindows
Dim IE_TabURL As String
Dim intRowPosition As Integer

intRowPosition = 2

Set IE = CreateObject("InternetExplorer.Application")
IE.Visible = True

IE.Navigate Sheet1.Range("A" & intRowPosition)

While IE.Busy
DoEvents
Wend

intRowPosition = intRowPosition + 1

While Sheet1.Range("A" & intRowPosition) <> vbNullString
IE.Navigate Sheet1.Range("A" & intRowPosition), CLng(2048)

While IE.Busy
DoEvents
Wend

intRowPosition = intRowPosition + 1
Wend

Set IE = Nothing
End Sub

For Each btnInput In ElementCol
If btnInput.Value = "Submit" Then
btnInput.Click
Exit For
End If
Next btnInput
 
Upvote 0

Forum statistics

Threads
1,216,533
Messages
6,131,216
Members
449,636
Latest member
ajdebm

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