My company is moving a lot of our reporting to Internet Explorer. In doing this, they have set it up to require a log-in, then you make selections on the IE web page, however each report does not have a unique address. The remains constant as you navigate to the correct report.
I'm trying to create a macro to pull a few reports by navigating to the web site, logging in with my userid & password... then taking a list of numbers to enter into blank fields... then clicking on "Submit"... which may not always be in the same location... then importing some of the info into Excel.
Ex. Navigate to " then Log in with "MyId" and "MyPassword" click on the Submit box, then enter (Item #1) from my Excel sheet, click Submit, grab info, click on the price tab, grab info, back out to the Item input screen and do it again for (Item #2).
Once it's all in Excel I can bounce the numbers around enough to do what I need to do. I'm a decent excel user, just dabbling in VB now... so can you reply as if I know NOTHING...
My starting point is:
Sub Read_URL_Test()
With ActiveSheet.QueryTables.AddConnection:="URL; Destination:=Range("a1"))'write web-page to sheet
.BackgroundQuery = True
.TablesOnlyFromHTML = False
.Refresh BackgroundQuery:=False
.SaveData = True
End With
End Sub
But this only pulls the info from the specific page... so looking to enter info onto the IE screen (id, pass, items, etc) before pulling the data.
Thanks,
JR
I'm trying to create a macro to pull a few reports by navigating to the web site, logging in with my userid & password... then taking a list of numbers to enter into blank fields... then clicking on "Submit"... which may not always be in the same location... then importing some of the info into Excel.
Ex. Navigate to " then Log in with "MyId" and "MyPassword" click on the Submit box, then enter (Item #1) from my Excel sheet, click Submit, grab info, click on the price tab, grab info, back out to the Item input screen and do it again for (Item #2).
Once it's all in Excel I can bounce the numbers around enough to do what I need to do. I'm a decent excel user, just dabbling in VB now... so can you reply as if I know NOTHING...
My starting point is:
Sub Read_URL_Test()
With ActiveSheet.QueryTables.AddConnection:="URL; Destination:=Range("a1"))'write web-page to sheet
.BackgroundQuery = True
.TablesOnlyFromHTML = False
.Refresh BackgroundQuery:=False
.SaveData = True
End With
End Sub
But this only pulls the info from the specific page... so looking to enter info onto the IE screen (id, pass, items, etc) before pulling the data.
Thanks,
JR