Nelson78
Well-known Member
- Joined
- Sep 11, 2017
- Messages
- 526
- Office Version
- 2007
Hello everybody.
In navigating a site with vba, I'm stuck on a menu.
My attempt:
Dim links, link
Dim j As Integer
But I bump into error Error 424 Object required on the following line:
Could anyone help me?
In navigating a site with vba, I'm stuck on a menu.
Code:
button id="z1xxx-b" class="z-menu-btn" type="button">Report </button>
a id="z1yyy-a" class="z-menu-item-zzz" href="javascript:;">
My attempt:
Dim links, link
Dim j As Integer
Code:
j = 0
Set links = IE.Document.getElementById("z1yyy-a").getElementsByTagName("a")
n = links.Length
While j <= n
links(j).Click
While IE.Busy
DoEvents
Wend
But I bump into error Error 424 Object required on the following line:
Code:
Set links = IE.Document.getElementById("z1HQs-a").getElementsByTagName("a")
Could anyone help me?