ali_zaheer
New Member
- Joined
- Oct 1, 2018
- Messages
- 5
Hii,
I'm getting error code 91 object not set while running this sub. while when I debug and go lie by line by pressing F8 it doesnt show any error and run smooth.Please help. i would be really thankful.
Sub systemLogin()
Dim objIE As Object
Dim uName As String
Dim pAss As Variant
uName = Range("B3")
pAss = Range("A3")
Set objIE = New InternetExplorer
objIE.Visible = True
objIE.navigate "http://10.0.12.98:1947/BrowserWeb"
Do Until objIE.readyState = 4
Loop
objIE.document.getElementById("signOnName").Value = uName
objIE.document.getElementById("password").Value = pAss
objIE.document.getElementById("main").Click
End Sub
I'm getting error code 91 object not set while running this sub. while when I debug and go lie by line by pressing F8 it doesnt show any error and run smooth.Please help. i would be really thankful.
Sub systemLogin()
Dim objIE As Object
Dim uName As String
Dim pAss As Variant
uName = Range("B3")
pAss = Range("A3")
Set objIE = New InternetExplorer
objIE.Visible = True
objIE.navigate "http://10.0.12.98:1947/BrowserWeb"
Do Until objIE.readyState = 4
Loop
objIE.document.getElementById("signOnName").Value = uName
objIE.document.getElementById("password").Value = pAss
objIE.document.getElementById("main").Click
End Sub