Web Query

donlincolnmre2

Board Regular
Joined
Dec 23, 2006
Messages
142
Hello

I have a spreadsheet with urls that I want excel function to download.

url dummy data
==========

1020 FAREL AVE in Walnut, CA | PeopleFinder.com.
1020 N PARK AVE in Inglewood, CA | PeopleFinder.com.
1020 S OAK FOREST LN in Pasadena, CA | PeopleFinder.com.
http://www.peoplefinder.com/reverse-address-lookup/10223 OLNEY ST/EL MONTE/CA


I’m able to download the data when I press f2 and then select the url and copy into buffer and then go to the next sheet and select DATA from the menu and then
get external data
new web query
and paste the url in address bar
and then select THE ENTIRE PAGE
and theFULL HTML FORMATTING

Doing it manually is too much.

Is there a way to automate the process till all the urls are downloaded.

Below is part of the marco code



Sub Macro1()
'
' Macro1 Macro
' Macro recorded 6/2/2017 by don
'
' Keyboard Shortcut: Ctrl+t
'
ActiveSheet.Next.Select
With ActiveSheet.QueryTables.Add(Connection:= _
"URL;http://www.peoplefinder.com/reverse-address-lookup/10128 LEMONA AVE/MISSION HILLS/CA" _
, Destination:=Range("A1"))
.Name = "CA_7"
.FieldNames = True
.RowNumbers = False
.FillAdjacentFormulas = False
.PreserveFormatting = False
.RefreshOnFileOpen = False
.BackgroundQuery = True
.RefreshStyle = xlInsertDeleteCells
.SavePassword = False
.SaveData = True
.AdjustColumnWidth = True
.RefreshPeriod = 0
.WebSelectionType = xlEntirePage
.WebFormatting = xlWebFormattingAll
.WebPreFormattedTextToColumns = True
.WebConsecutiveDelimitersAsOne = True
.WebSingleBlockTextImport = False
.WebDisableDateRecognition = False
.Refresh BackgroundQuery:=False
End With
End Sub


Any help would be greatly appreciated.

Thanks.
 

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.

Forum statistics

Threads
1,214,924
Messages
6,122,294
Members
449,077
Latest member
Rkmenon

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top