b.hill2387
New Member
- Joined
- Mar 28, 2012
- Messages
- 38
I am trying to click on several links in a web page. They are all within classes named "addressbox". There are multiple classes named "addressbox". The names of the links are different each time so I cannot name them in the code.
I cannot get the code to click on the second link in each class, but the logic is this:
I cannot get the code to click on the second link in each class, but the logic is this:
Code:
[COLOR=blue][FONT=monospace]Sub[/FONT][/COLOR][COLOR=#000000][FONT=monospace] GetData
[/FONT][/COLOR][COLOR=darkgreen][FONT=monospace]'code to go to website (this part is working)
[/FONT][/COLOR][COLOR=blue][FONT=monospace]For Each[/FONT][/COLOR][COLOR=#000000][FONT=monospace] class named "addressbox" [/FONT][/COLOR][COLOR=blue][FONT=monospace]In[/FONT][/COLOR][COLOR=#000000][FONT=monospace] the html document
Click on the second href link
[/FONT][/COLOR][COLOR=darkgreen][FONT=monospace]'Extract data (this part is working)[/FONT][/COLOR][COLOR=#000000][FONT=monospace]
ie.GoBack (this part should work but it [/FONT][/COLOR][COLOR=darkgreen][FONT=monospace]'s untested)
[/FONT][/COLOR][COLOR=blue][FONT=monospace]Next
[/FONT][/COLOR][COLOR=blue][FONT=monospace]End Sub
[/FONT][/COLOR]