Looking to pull data from online database. I was hoping I could use a cell's value during this process that changes the URL page.
I highlighted the area that would be part of my current excel sheet (location $A$5 if needed) that needs to go into the URL in yellow
Sub Online_data_formula()
'
' Online_data_formula Macro
'
'
ActiveWindow.SmallScroll Down:=-33
With ActiveSheet.QueryTables.Add(Connection:= _
"URL;http://www.hpsapps.com/pcore/testReports.asp?fSearch=Now&fSerialNumber=14-157265&Submit=Search" _
, Destination:=Range("$A$9"))
.Name = "testReports.asp?fSearch=Now&fSerialNumber=14-157265&Submit=Search"
.FieldNames = True
.RowNumbers = False
.FillAdjacentFormulas = False
.PreserveFormatting = True
.RefreshOnFileOpen = False
.BackgroundQuery = False
.RefreshStyle = xlOverwriteCells
.SavePassword = False
.SaveData = True
.AdjustColumnWidth = True
.RefreshPeriod = 0
.WebSelectionType = xlSpecifiedTables
.WebFormatting = xlWebFormattingNone
.WebTables = "4"
.WebPreFormattedTextToColumns = True
.WebConsecutiveDelimitersAsOne = True
.WebSingleBlockTextImport = False
.WebDisableDateRecognition = False
.WebDisableRedirections = False
.Refresh BackgroundQuery:=False
End With