Web query
Hej,Jeg har prøvet at lave en web query, som skal hente data via et link i B2. Jeg kan desværre ikke finde ud af, hvad der skal stå ud for adresse.
Sub Webq()
Columns("E:W").Select
Selection.Delete Shift:=xlToLeft
Range("B2").Select
adresse = ????????
With ActiveSheet.QueryTables.Add(Connection:= _
"URL;" & adresse & "", _
Destination:=Range("e4"))
.Name = "Vinder"
.FieldNames = True
.RowNumbers = False
.FillAdjacentFormulas = False
.PreserveFormatting = True
.RefreshOnFileOpen = False
.BackgroundQuery = True
.RefreshStyle = xlInsertDeleteCells
.SavePassword = False
.SaveData = True
.AdjustColumnWidth = True
.RefreshPeriod = 0
.WebSelectionType = xlSpecifiedTables
.WebFormatting = xlWebFormattingNone
.WebTables = "10"
.WebPreFormattedTextToColumns = True
.WebConsecutiveDelimitersAsOne = True
.WebSingleBlockTextImport = False
.WebDisableDateRecognition = False
.Refresh BackgroundQuery:=False
End With
End Sub