I been trying to adapt code to get this working but with no success. I need to submit as guest the following webpage:
<div class="lotusBtnContainer">
<input type="submit" class="lotusBtn" value="Access as a Guest"onclick="javascript:asGuest();">
<input type="submit" class="lotusBtn" value="Log in and Access" onclick="javascript:asUser();">
<span class="lotusAction"> </span>
</div>
This is what I have so far, since the button doesn't have an ID I'm not sure how to address it:
Dim IntExpl As Object
Set IntExpl = CreateObject("InternetExplorer.Application")
With IntExpl
.navigate "webpage url"
.Visible = True
Do Until IntExpl.readyState = 4
Loop
'.document.getElementsByName("subAction")(0).Click
End With
End Sub
.getElementsByTagName(note the 'Tag'). 2. The next thing I note is that you should be trying to click.document.getElementsByTagName("input")(0)