+ Reply to Thread
Results 1 to 4 of 4

Web Query - using a variable URL located in a cell

  1. #1
    Registered User
    Join Date
    10-18-2012
    Location
    Tamworth, Australia
    MS-Off Ver
    Excel 2003
    Posts
    6

    Web Query - using a variable URL located in a cell

    Hi, all. I'm having my first go at importing data using a Web Query using the following code:

    Please Login or Register  to view this content.
    The website URL I need to access is located in Range("A6"). How can I incorporate the URL in A6 into the Web Query?

    Many thanks,

    Darren

  2. #2
    Valued Forum Contributor
    Join Date
    05-21-2009
    Location
    Great Britain
    MS-Off Ver
    Excel 2003
    Posts
    550

    Re: Web Query - using a variable URL located in a cell

    Please Login or Register  to view this content.
    Post responsibly. Search for excelforum.com

  3. #3
    Registered User
    Join Date
    10-18-2012
    Location
    Tamworth, Australia
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: Web Query - using a variable URL located in a cell

    Thanks, Chippy. I'm very new to VBA and even getting the syntax correct at this stage is a challenge! Your suggestion solved my problem, thank you.

    Darren

  4. #4
    Registered User
    Join Date
    11-05-2012
    Location
    London Englad
    MS-Off Ver
    Many
    Posts
    22

    Re: Web Query - using a variable URL located in a cell

    I would suggest that you move destination of Web Query to A2. and move cell where you store URL to A1. Your code could read something like

    Please Login or Register  to view this content.
    Reason for this tip: When a web query refreshes, it often will clear out everything in its range (which is where your URL is)

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1