You have an unterminated else
clause on this line:
If signInButton > 0 Then signInButton.Click Else ' Else what?
質問
been racking my brain over the last few days without any success. I get the error "Object variable or With block variable not set", on the "If SignInButton > 0 Then" - how? Someone please explain. Thanks.
Sub SearchElement
Dim IE As Object
Set IE = CreateObject("InternetExplorer.Application")
IE.Visible = True
IE.navigate "appworld.blackberry.com/isvportal/home.do"
Do While IE.readystate <> 4
DoEvents
Loop
Dim signInButton As Object
Set signInButton = IE.document.getelementbyid("ssoLoginFrm_0")
If signInButton > 0 Then signInButton.Click Else
End Sub.
I get "end if without block if"
解決
You have an unterminated else
clause on this line:
If signInButton > 0 Then signInButton.Click Else ' Else what?