+ Reply to Thread
Results 1 to 6 of 6

Web query connection referencing a cell

  1. #1
    Registered User
    Join Date
    07-07-2011
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    44

    Web query connection referencing a cell

    http://www.excelforum.com/excel-prog...html?p=2822671

    I am trying to do the same thing but using a web query. I need the macro to run a query that runs off of a url that is in a cell?? any ideas?
    the url is going to change so I need cell being referenced. It would be really helpfull when reference the cell use the format Cells(1,1).Value because i would eventually like to use loops once this problem is solved thanks!!

  2. #2
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    A1
    MS-Off Ver
    Most
    Posts
    12,302

    Re: Web query connection referencing a cell

    Basically
    Please Login or Register  to view this content.
    assuming the whole URL is in the cell.
    Remember what the dormouse said
    Feed your head

  3. #3
    Registered User
    Join Date
    07-07-2011
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    44

    Re: Web query connection referencing a cell

    Thank you for the help!!
    but one more problem it does not seem to like the last line of code the ", Destination:=Range("$A$1"))" I got a syntax error, any ideas??

    Please Login or Register  to view this content.

  4. #4
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    A1
    MS-Off Ver
    Most
    Posts
    12,302

    Re: Web query connection referencing a cell

    That needs to be on the same line as the code before it.

  5. #5
    Registered User
    Join Date
    07-07-2011
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    44

    Re: Web query connection referencing a cell

    I got it thanks alot for your help.. for future info I had to make Cells(row,2).Value a variable and call it like
    Please Login or Register  to view this content.

  6. #6
    Registered User
    Join Date
    07-07-2011
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    44

    Re: Web query connection referencing a cell

    AHHH!! nevermind it does not work. for some reason both ways yours and mine it does not seem to grab the value in the cell. it just creates a blank worksheet

+ 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