+ Reply to Thread
Results 1 to 7 of 7

Dynamic Web query

  1. #1
    Registered User
    Join Date
    02-09-2009
    Location
    Winnipeg, Canada
    MS-Off Ver
    Excel 2003
    Posts
    49

    Dynamic Web query

    Searched for a while now for a way to do a dynamic web query. Test file attached shows what I want to do.
    A7 is the cell with web query with address taken from input in A5. Need to pick up only the table with game pitching log.
    Parameters will change and so A5 text will change. Need to update game pitching log for the parameters entered (year may change, name of pitcher may change)
    A macro would be better (I think) so I can place a button on this page to update data from web query everytime reference cell changes (A5 in the attached sheet example).
    Recorded a macro when inserting a new web query and the code I get is:
    Please Login or Register  to view this content.
    If I use this then my question would be how to change this so address is variable and its input comes from A5 (in test file attached) and also to have this on a specific sheet (not on the active sheet). Help is appreciated.
    Attached Files Attached Files
    Last edited by bmind; 06-23-2009 at 10:47 AM.

  2. #2
    Registered User
    Join Date
    02-09-2009
    Location
    Winnipeg, Canada
    MS-Off Ver
    Excel 2003
    Posts
    49

    Re: Dynamic Web query

    Anyone? Did not realize the defficulty of this task...

  3. #3
    Registered User
    Join Date
    02-09-2009
    Location
    Winnipeg, Canada
    MS-Off Ver
    Excel 2003
    Posts
    49

    Re: Dynamic Web query

    I am still searching but have not found anything yet..
    Anyone has any ideas?

  4. #4
    Registered User
    Join Date
    02-09-2009
    Location
    Winnipeg, Canada
    MS-Off Ver
    Excel 2003
    Posts
    49

    Re: Dynamic Web query

    Is there a way to set .Name (in the code shown) as a variable that takes value of a cell? Maybe this might do it?

  5. #5
    Registered User
    Join Date
    02-09-2009
    Location
    Winnipeg, Canada
    MS-Off Ver
    Excel 2003
    Posts
    49

    Re: Dynamic Web query

    Anyone? Still searching...

  6. #6
    Registered User
    Join Date
    02-09-2009
    Location
    Winnipeg, Canada
    MS-Off Ver
    Excel 2003
    Posts
    49

    Re: Dynamic Web query

    Thiis must be a difficult one...

  7. #7
    Registered User
    Join Date
    02-09-2009
    Location
    Winnipeg, Canada
    MS-Off Ver
    Excel 2003
    Posts
    49

    Re: Dynamic Web query

    Hi,
    I was thinking of a possible solution. Using the following code:
    Please Login or Register  to view this content.
    So then the issue is to figure out how I can write:
    strConnection = [text of a specific cell]. I do not know the syntax needed. Appreciate your help. I hope this would work if cell text string is changed...
    Last edited by bmind; 06-24-2009 at 04:09 PM.

+ 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