+ Reply to Thread
Results 1 to 5 of 5

Problem with a web query

  1. #1
    Registered User
    Join Date
    02-02-2012
    Location
    Denver, Colorado
    MS-Off Ver
    Excel 2010
    Posts
    35

    Problem with a web query

    Hi,

    I am trying to pull information from the web through a web query. The code I have is
    Please Login or Register  to view this content.
    For some reason when I try to change the dates (only the "to" date) using a variable the query stops working. I have made sure that it is in the correct format and everything too. Can someone help me out here? I have highlighted the variable in the URL

    Thanks
    Last edited by JimmySmith; 04-18-2012 at 02:43 PM.

  2. #2
    Registered User
    Join Date
    02-02-2012
    Location
    Denver, Colorado
    MS-Off Ver
    Excel 2010
    Posts
    35

    Re: Problem with a web query

    Forgot to add that The reason I need to change the dates to pull a different range of information according to the current date and I would like to do this all through VBA rather than copy and paste information. The numbers represent the way the website increments different days.

  3. #3
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,259

    Re: Problem with a web query

    Hello JimmySmith ,

    Change the type of the variable dblToday from a Double to a Variant.
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  4. #4
    Registered User
    Join Date
    02-02-2012
    Location
    Denver, Colorado
    MS-Off Ver
    Excel 2010
    Posts
    35

    Re: Problem with a web query

    Works perfect now! thank you very much!

  5. #5
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,259

    Re: Problem with a web query

    Hello JimmySmith,

    You're Welcome.

+ 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