+ Reply to Thread
Results 1 to 6 of 6

Using cell values to pull up web sites

  1. #1
    Registered User
    Join Date
    03-15-2007
    Posts
    53

    Using cell values to pull up web sites

    I have been pulling data from the New Web Query command, but its kinda slow. If I could change the URL using cell values it would be much faster.
    The macro I would use is
    Please Login or Register  to view this content.
    So basically in the "URL;http://www.nba.com/games/20061213/BOSPHI/playbyplay.html", Destination:= _
    I would want to change the date 20061213 to a cell value and same with BOSPHI. Can anyone help me with the coding or let me know if this is possible to do. Thanks in advance guys.

  2. #2
    Valued Forum Contributor mudraker's Avatar
    Join Date
    11-10-2003
    Location
    Melbourne, Australia
    Posts
    3,983
    Date in a1
    BOSPHI in b1

    Replace

    Please Login or Register  to view this content.
    with
    Please Login or Register  to view this content.
    change cell reference to suit
    Please Read Forum Rules Before Posting
    Wrap VBA code by selecting the code and clicking the # icon or Read This
    How To Cross Post politely

    Top Excel links for beginners to Experts

    If you are pleased with a member's answer then use the Scales icon to rate it
    If my reply has assisted or failed to assist you I welcome your Feedback.

  3. #3
    Registered User
    Join Date
    03-15-2007
    Posts
    53
    I tried several different things which none seem to work. I use the simplest example.
    [code]
    "URL;http://www.nba.com/games/20061213/" & Range("A1") & "/playbyplay.html", Destination:= _
    Range("A2"))
    [code]
    I am getting an error that says http://www.nba.com/games/20061213//playbyplay.html cannot be found, where the A1 info (A1=BOSPHI) is not being recognised.
    I am sure it is probably the way I have entered the code. Hope you can help. Thanks in advance.

  4. #4
    Valued Forum Contributor mudraker's Avatar
    Join Date
    11-10-2003
    Location
    Melbourne, Australia
    Posts
    3,983
    This now works
    I forgot you cannot modify the URL as part of the one command - that is can not have part text & variables .
    Need to set up a variable with the complete URL and then use the variable as the URL

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    03-15-2007
    Posts
    53
    Thanks so much works perfectly

  6. #6
    Valued Forum Contributor mudraker's Avatar
    Join Date
    11-10-2003
    Location
    Melbourne, Australia
    Posts
    3,983
    I'm glad to hear it solved your problem

+ 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