Hello,
I am bringing in data from the web using a macro (see below). The data from the webpage gets imported correctly, however in an internet browser, one of the columns has text with an underlying hyperlink, and I am hoping someone can help me bring that hyperlink instead of the text into Excel.
For example, http://finance.yahoo.com/q?s=AAPL&ql=1 has links to many pages including "Order Book", but I would want "http://finance.yahoo.com/q/ecn?s=AAPL+Order+Book" to be brought into Excel.
Thank you so much!!
My macro:
With ActiveSheet.QueryTables.Add(Connection:= _
"URL;https://www.XYZ....", _
Destination:=Range("$A$1"))
.Name = "Import"
.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
I am bringing in data from the web using a macro (see below). The data from the webpage gets imported correctly, however in an internet browser, one of the columns has text with an underlying hyperlink, and I am hoping someone can help me bring that hyperlink instead of the text into Excel.
For example, http://finance.yahoo.com/q?s=AAPL&ql=1 has links to many pages including "Order Book", but I would want "http://finance.yahoo.com/q/ecn?s=AAPL+Order+Book" to be brought into Excel.
Thank you so much!!
My macro:
With ActiveSheet.QueryTables.Add(Connection:= _
"URL;https://www.XYZ....", _
Destination:=Range("$A$1"))
.Name = "Import"
.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