Looking to write some VBA in excel to loop through refreshing a web query that has 2 variables I am trying to populate. After doing some digging online I found the following code which appears to have worked for some other users.
With ActiveSheet.QueryTables(1)
.Connection = "URL;" & NewURL...