Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Multiple Website Import

I have a sheet populated with web address URLs in column A. I would
like to loop a macro that imports multiple URLs.

With ActiveSheet.QueryTables.Add(Connection:= _
"URL;http://examplewebsite.com" _
, Destination:=Range("$A$1"))

Any way to make the "URL; call on a variable or cell address from
another sheet where I can loop through and have all websites import
rather than copy and pasting a rediculous amount of times?

Thanks,
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,124
Default Multiple Website Import

for i = 1 to cells(rows.count,1).end(xlup).row
With ActiveSheet.QueryTables.Add(Connection:= _
"URL;http://" & cells(i,1) & ".com" _
, Destination:=Range("$A$1"))
next i

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"Ryan" wrote in message
...
I have a sheet populated with web address URLs in column A. I would
like to loop a macro that imports multiple URLs.

With ActiveSheet.QueryTables.Add(Connection:= _
"URL;http://examplewebsite.com" _
, Destination:=Range("$A$1"))

Any way to make the "URL; call on a variable or cell address from
another sheet where I can loop through and have all websites import
rather than copy and pasting a rediculous amount of times?

Thanks,


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Multiple Website Import

On Aug 10, 9:57*am, "Don Guillett" wrote:
for i = 1 to cells(rows.count,1).end(xlup).row
*With ActiveSheet.QueryTables.Add(Connection:= _
* * * * "URL;http://" & cells(i,1) & ".com" _
* * * * , Destination:=Range("$A$1"))
next i

--
Don Guillett
Microsoft MVP Excel
SalesAid Software
"Ryan" wrote in message

...



I have a sheet populated with web address URLs in column A. *I would
like to loop a macro that imports multiple URLs.


* *With ActiveSheet.QueryTables.Add(Connection:= _
* * * *"URL;http://examplewebsite.com" _
* * * *, Destination:=Range("$A$1"))


Any way to make the "URL; call on a variable or cell address from
another sheet where I can loop through and have all websites import
rather than copy and pasting a rediculous amount of times?


Thanks,- Hide quoted text -


- Show quoted text -


Thanks, I actually worked through what you gave me and got it to
work. Nice job, thanks a lot.
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
import data from website Maximilian Harmstorf Excel Programming 5 November 8th 16 03:49 PM
Import External data from a Website MichaelRobert Excel Worksheet Functions 6 November 13th 08 02:25 PM
Import images from a website Thyag Excel Programming 1 October 31st 08 11:20 AM
Import data from a website to excel marsocgm Excel Worksheet Functions 1 July 10th 07 03:45 PM
How do I import multiple e-mail addresses from website to excel af Excel Worksheet Functions 0 October 25th 06 09:15 PM


All times are GMT +1. The time now is 05:13 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"