Dear community,
I could really use some help on this one, i've been trying to get this functioning for weeks now but i can't really get it to work properly.
The Situation
I need to keep track of 100+ different counters, each, located on their own (so different) IP address. I want to automate the process so users only have to enter their own username, and then the data is retrieved accordingly.
I'm trying to make a query, which changes upon changing the Cell value
For example: 1.111.11.1 is entered in cell "A1", due to this value, the query automatically loads in the data of that IP address. However, when "A1" changes to, let's say; 1.111.11.2, the query needs to automatically erase the previous data, and return the numbers of the given IP address.
I've attached a image to this post; there it shows what i want to accomplish.
I think this should not be to hard, i've tried making the query in VBA, but, when i need to specify the URL, i don't know how to refer the the cell value.
Sub GetCourseList()
Dim URL As String
Dim qt As QueryTable
Dim ws As Worksheet
Set ws = Worksheets.Add
URL = "CELL VALUE?!?!"
Set qt = ws.QueryTables.Add( _
Connection:="URL;" & URL, _
Destination:=Range("A10"))
With qt
.RefreshOnFileOpen = True
.Name = "test"
.FieldNames = True
.WebSelectionType = xlAllTables
.Refresh BackgroundQuery:= TRUE
End With
End Sub
I've tried this code, did not work, i know entered ?!?! at the cell value part since this is the part i'm confused about.
Hope you guys can help!
I could really use some help on this one, i've been trying to get this functioning for weeks now but i can't really get it to work properly.
The Situation
I need to keep track of 100+ different counters, each, located on their own (so different) IP address. I want to automate the process so users only have to enter their own username, and then the data is retrieved accordingly.
I'm trying to make a query, which changes upon changing the Cell value
For example: 1.111.11.1 is entered in cell "A1", due to this value, the query automatically loads in the data of that IP address. However, when "A1" changes to, let's say; 1.111.11.2, the query needs to automatically erase the previous data, and return the numbers of the given IP address.
I've attached a image to this post; there it shows what i want to accomplish.
I think this should not be to hard, i've tried making the query in VBA, but, when i need to specify the URL, i don't know how to refer the the cell value.
Sub GetCourseList()
Dim URL As String
Dim qt As QueryTable
Dim ws As Worksheet
Set ws = Worksheets.Add
URL = "CELL VALUE?!?!"
Set qt = ws.QueryTables.Add( _
Connection:="URL;" & URL, _
Destination:=Range("A10"))
With qt
.RefreshOnFileOpen = True
.Name = "test"
.FieldNames = True
.WebSelectionType = xlAllTables
.Refresh BackgroundQuery:= TRUE
End With
End Sub
I've tried this code, did not work, i know entered ?!?! at the cell value part since this is the part i'm confused about.
Hope you guys can help!