![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Board Regular
Join Date: Mar 2002
Location: Philippines
Posts: 55
|
I try to extract data from an external database which stores the data on several thousand pages with different URL addresses. The addresses only differ by one word, i.e. the username :"Klaus" in the following example.
"URL;http://1on1.xxxxxxxx.com/admin/viewaccount.cgi?username=klaus", How can I put a placeholder in the script instead of "Klaus", like a cell on the same worksheet, so everytime I run the query (by using a macro) it would replace the name "Klaus" with the name which is then in that particular cell? Please somebody help, I am working on this already for 3 days without sleep!!! |
|
|
|
|
|
#2 |
|
Board Regular
Join Date: Mar 2002
Location: Cincinnati, Ohio, USA
Posts: 6,824
|
Hi
Try this. "URL;http://1on1.xxxxxxxx.com/admin/viewaccount.cgi?username=klaus", Say klaus2 is in sheet1.range("A2") "URL;http://1on1.xxxxxxxx.com/admin/viewaccount.cgi?username=" & sheet1.range("A2") & """, Let us know if it works. Tom |
|
|
|
|
|
#3 |
|
Board Regular
Join Date: Mar 2002
Location: Philippines
Posts: 55
|
|
|
|
|
|
|
#4 |
|
Board Regular
Join Date: Mar 2002
Location: Philippines
Posts: 55
|
Hi Tom,
Didn't work. I get the message "The address of this site is not valid". Any other ideas? |
|
|
|
|
|
#5 |
|
Board Regular
Join Date: Mar 2002
Location: Cincinnati, Ohio, USA
Posts: 6,824
|
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|