I have a worksheet that has in one column links to different xml IDs which I can copy the link then choose Data> Get Data From External Sources paste the link in the File Name box and click open and then select ok for the dialogue box and then select the select that I want the information to appear in, but go through many of these in the many is time consuming.
I have a macro that begins to do what I am doing manually, but would like for the macro to essentially go down the column and repeat the process until it reaches a blank cell then stops.
Any assistance would be greatly appreciated?
Here is the process:
Sub retrieve()
'
' retrieve Macro
'
'
Range("A2").Select
Selection.Copy
ActiveWorkbook.XmlImport URL:= _
"http://domain.com/cgi-bin/site/xml/itemResponse.w?items=AS31" _
, ImportMap:=Nothing, Overwrite:=True, Destination:=Range("$B$2")
Range("A3").Select
Selection.Copy
ActiveWorkbook.XmlImport URL:= _
"http://domain.com/cgi-bin/site/xml/itemResponse.w?items=AS3X" _
, ImportMap:=Nothing, Overwrite:=True, Destination:=Range("$B$3")
Range("A4").Select
Selection.Copy
ActiveWorkbook.XmlImport URL:= _
"http://domain.com/cgi-bin/site/xml/itemResponse.w?items=AS4XZ _
, ImportMap:=Nothing, Overwrite:=True, Destination:=Range("$B$4")
End Sub
Bookmarks