Skip to content Skip to sidebar Skip to footer

Vba To Log-in To Webpage (determine If Needed)

I'm trying to put a section at the beginning of my sub in order to do 2 things. 1. determine if I need to login. 2. enter login information. The URL is the same whether its the log

Solution 1:

This worked for me:

Dim myElem as Object
Set myElem = IE.document.getElementById("ctl05_TextBoxSCN")
If myElem Is Nothing Then
    'element not found
Else
    'element found
End If

Post a Comment for "Vba To Log-in To Webpage (determine If Needed)"