Code:
Sub test()
' open IE, navigate to the desired page and loop until fully loaded
Set IE = CreateObject("InternetExplorer.Application")
my_url = "https://services.gst.gov.in/services/login"
With IE
.Visible = True
.Navigate my_url
.Top = 50
.Left = 530
.Height = 400
.Width = 400
Do Until Not IE.Busy And IE.readyState = 4
DoEvents
Loop
End With
' Input the username and password
IE.Document.getElementById("user_name").Value = "testID"
IE.Document.getElementById("user_pass").Value = "testPW"
Do Until Not IE.Busy And IE.readyState = 4
DoEvents
Loop
End Sub
I want text of cell A1 and Cell A2 instead of predefined name.
Last edited: