I would like to be able to use a macro that ask for apart of an web address then use that address to get the information I want.
Example: Items bold and underlined needs to be changed
Sub Macro1()
'
' Macro1 Macro
' look at me
'
'
With ActiveSheet.QueryTables.Add(Connection:= _
"URL;http://[B](type in your number here[/B])/cgi-bin/dynamic/printer/config/reports/devicestatistics.html" _
, Destination:=Range("$A$1"))
.Name = "devicestatistics"
.FieldNames = True
.RowNumbers = False
.FillAdjacentFormulas = False
.PreserveFormatting = True
.RefreshOnFileOpen = False
.BackgroundQuery = True
.RefreshStyle = xlInsertDeleteCells
.SavePassword = False
.SaveData = True
.AdjustColumnWidth = True
.RefreshPeriod = 0
.WebSelectionType = xlEntirePage
.WebFormatting = xlWebFormattingNone
.WebPreFormattedTextToColumns = True
.WebConsecutiveDelimitersAsOne = True
.WebSingleBlockTextImport = False
.WebDisableDateRecognition = False
.WebDisableRedirections = False
.Refresh BackgroundQuery:=False
End With
End Sub
Example: Items bold and underlined needs to be changed
Sub Macro1()
'
' Macro1 Macro
' look at me
'
'
With ActiveSheet.QueryTables.Add(Connection:= _
"URL;http://[B](type in your number here[/B])/cgi-bin/dynamic/printer/config/reports/devicestatistics.html" _
, Destination:=Range("$A$1"))
.Name = "devicestatistics"
.FieldNames = True
.RowNumbers = False
.FillAdjacentFormulas = False
.PreserveFormatting = True
.RefreshOnFileOpen = False
.BackgroundQuery = True
.RefreshStyle = xlInsertDeleteCells
.SavePassword = False
.SaveData = True
.AdjustColumnWidth = True
.RefreshPeriod = 0
.WebSelectionType = xlEntirePage
.WebFormatting = xlWebFormattingNone
.WebPreFormattedTextToColumns = True
.WebConsecutiveDelimitersAsOne = True
.WebSingleBlockTextImport = False
.WebDisableDateRecognition = False
.WebDisableRedirections = False
.Refresh BackgroundQuery:=False
End With
End Sub