Hello
this code works and downloads the data of the corona virus and pastes it in A10
I would like to change the site in the URL line that requires a username and password
where do I data in a username and password in the VBA
this code works and downloads the data of the corona virus and pastes it in A10
I would like to change the site in the URL line that requires a username and password
where do I data in a username and password in the VBA
VBA Code:
Sub Get_webpage()
'clear old data
Rows("6:251").Select
Selection.Delete Shift:=xlUp
On Error GoTo error
Application.ScreenUpdating = False
With Sheets("Sheet1").QueryTables.Add(Connection:= _
"URL;https://virusncov.com", _
'"URL;http://88.215.27.26/Firetronic/Auth/App.aspx?list=BLCustom_4&mitId=1016&", _
Destination:=Sheets("Sheet1").Range("A10"))
.BackgroundQuery = True
.TablesOnlyFromHTML = True
.Refresh BackgroundQuery:=False
.SaveData = True
End With
error:
Application.ScreenUpdating = True
End Sub