Hi guys,
o)
I needed to retrieve data from a web page (Report names and dates) automatically using a Web Query in Excel. So far I have been able to retrieve the data (thanks to a macro that I found in this forum) using this code
Sub pullDataparaBoo()
x = Cells(Rows.Count, "T").End(xlUp).Row
For A = 1 To 17 Step 1
With ActiveSheet.QueryTables.Add(Connection:= _
"URL;http://www.forrester.com/search?range=504001&N=10001 500003&tmtxt= cloud, security&page=" & A & "&Count=2203", _
Destination:=Range("$A$1"))
.Name = "PullForrester Query"
.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
.Refresh BackgroundQuery:=False
End With
Sheets.Add After:=ActiveSheet
Next A
End Sub
After I run the macro I get the data in the following format and in multiple tabs:
For Infrastructure & Operations Professionals
Report:Huawei Takes On The Global Enterprise Market
Regional Success Gives The Firm A Head Start, But The Global Enterprise Market Is A Whole New Ballgame
Bryan WangJuly 23, 2012
Huawei Technologies officially entered the global enterprise market in 2011, aiming to grow its market share by leveraging its experience in the carrier network equipment market and broadening its...
I need to create a table containing the fields Date and Report Name, in this case would be
Date |Report Name
July 23, 2012 | Huawei Takes on The Global Enterprise Market
The ideal scenario would be having all the projects and dates in a single table in one tab.
Please guys, I really need some help on this... I'm a beginner.
Thanks in advance and best regards,
Gabriel Valck
Bookmarks