View URL Returned After QueryTables.Add

rmauldin

New Member
Joined
Apr 19, 2002
Messages
1
I am using QueryTable to read a series of websites and insert them into Excel.

After doing a QueryTables.Add as in Item #1 below, I need to be able to capture the URL that is returned. For the Item #1 example, the URL will look like Item #2... but I just can't find a way in VBA.

Anyone know how to do this?

Thanks - Ron
ron_mauldin@hotmail.com

ITEM #1
Sub ResumeQuery()
Sheets("Temp").Select
Cells.Select
Selection.Clear
Sheets("Temp").Range("A1").Select
With Sheets("Temp").QueryTables.Add(Connection:= _
"URL;http://www.headhunter.net/JobPoster/Resumes/resquery.asp" _
, Destination:=Range("A1"))
.Name = ""
.PostText = _
"Words=&Use=All&Cats=Cat089&EmpType=EDCT%7CEDET&EX=&DT=&EdLevel=&Freshness=&Town=Phoenix&SID=AZ&CID=US&t=0&btnFJSearch=Search%21"
'Cat089 = Sales
.FieldNames = True
.RowNumbers = False
.FillAdjacentFormulas = False
.PreserveFormatting = False
.RefreshOnFileOpen = False
.BackgroundQuery = True
.RefreshStyle = xlInsertDeleteCells
.SavePassword = False
.SaveData = True
.AdjustColumnWidth = True
.RefreshPeriod = 0
.WebFormatting = xlWebFormattingAll
.WebSelectionType = xlSpecifiedTables
.WebTables = "8,9"
.WebPreFormattedTextToColumns = False
.WebConsecutiveDelimitersAsOne = True
.WebSingleBlockTextImport = False
.WebDisableDateRecognition = True
.Refresh BackgroundQuery:=False
End With
End Sub

ITEM #2
http://www.headhunter.net/JobPoster...find.asp;SS=NO;PROD=ResumeAccess&CiBookMark=2
 

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December

Forum statistics

Threads
1,214,853
Messages
6,121,935
Members
449,056
Latest member
denissimo

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