+ Reply to Thread
Results 1 to 3 of 3

Querytable/Web Queries problem - how to reset count and ignore errors

  1. #1
    Forum Contributor
    Join Date
    04-24-2012
    Location
    Moscow
    MS-Off Ver
    Excel 2010
    Posts
    291

    Querytable/Web Queries problem - how to reset count and ignore errors

    Hi all!!

    this is the code i use:

    Please Login or Register  to view this content.

    as the result i get 14 tables from web when what table it will be depends on dates in cells, say, Wq(2 + 20 * i, 9)

    The problem is that when excel start count number of requests by this data table - i get no data. it looks like follow:?date=15.10_11, where 15.10 is the table name and 11 is number of requests. This think wont work but if i put only ?date=15.10 in cell and refresh then it works great. So 2 questions.

    1 - how to prevent excel from counting and do query always like 1st time
    2. My on error resume next doesn't work if i try request data that doesn't exist and i get nasty messages. How i really tell exxcel to ignore these errors??

    Thanks in advance!

  2. #2
    Forum Contributor
    Join Date
    04-24-2012
    Location
    Moscow
    MS-Off Ver
    Excel 2010
    Posts
    291

    Re: Querytable/Web Queries problem - how to reset count and ignore errors

    Well, to prevent from counting it's must truly delete the QueryTable. the best way to go:

    Please Login or Register  to view this content.

    But how to ignore errors is still question... Turning off alerts doesn't help as well

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

    Re: Querytable/Web Queries problem - how to reset count and ignore errors

    What do you mean by "ignoring errors". If you truly ignored them, there would be no need for this query?

    I am guessing that you are after something other than "On Error Resume Next".

    You can use following function that you can run in Debug mode. In first run, pass deleteVal as false and press Ctrl-G during Debug mode to see names of tables.

    Please Login or Register  to view this content.

+ 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