IE open in background in vba excel even i used objIE.visible = true.
my code is :
Private Sub CommandButton2_Click()
mystart:
Set objIE = CreateObject("InternetExplorer.Application")
objIE.Top = 0
objIE.Left = 0
objIE.Width = 1024
objIE.Height = 768
objIE.Visible = True 'We can see IE
'On Error Resume Next
objIE.Navigate ("https://ewaybillgst.gov.in/login.aspx")
Do
DoEvents
If Err.Number <> 0 Then
objIE.Quit
Set objIE = Nothing
GoTo mystart:
End If
Loop Until objIE.ReadyState = 4
Set cap = objIE.Document.getelementbyid("txtCaptcha")
cap.Focus 'need focus on this
End Sub
Plz plz plz tell me the solution... any change in references list ?? any priority changes ??
my code is :
Private Sub CommandButton2_Click()
mystart:
Set objIE = CreateObject("InternetExplorer.Application")
objIE.Top = 0
objIE.Left = 0
objIE.Width = 1024
objIE.Height = 768
objIE.Visible = True 'We can see IE
'On Error Resume Next
objIE.Navigate ("https://ewaybillgst.gov.in/login.aspx")
Do
DoEvents
If Err.Number <> 0 Then
objIE.Quit
Set objIE = Nothing
GoTo mystart:
End If
Loop Until objIE.ReadyState = 4
Set cap = objIE.Document.getelementbyid("txtCaptcha")
cap.Focus 'need focus on this
End Sub
Plz plz plz tell me the solution... any change in references list ?? any priority changes ??