Hi, i've been running a web query from excel which dumps down data to excel, worked fine while the session_id was a constant, however it now changes each day.
I wanted to build an input box to allow me to paste in the new session_id into the html string.
however I've not done much with variables and dont know what the correct format is and how to add the session-id value into the code.
An example of the session_id is shown below in red.
Thanks
I wanted to build an input box to allow me to paste in the new session_id into the html string.
however I've not done much with variables and dont know what the correct format is and how to add the session-id value into the code.
An example of the session_id is shown below in red.
Thanks
Code:
Dim Session_Id As String
Session_Id = InputBox("what is the Session Id (from Matt)")
With ActiveSheet.QueryTables.Add(Connection:="URL;[URL unfurl="true"]http://myreporting.me.com/data/Summary.asp?WDT=LR&[/URL][COLOR=red]1y1y2782xqkUgatdIPmZ74V9[/color red]&zip=exe11&CB5=&CB4=&CB3=exe1&CB2=exe1&e=.csv", Destination:=Range("c10"))
End With