+ Reply to Thread
Results 1 to 4 of 4

how to automatically close certain error messages regarding data queries?

  1. #1
    Forum Contributor
    Join Date
    12-03-2008
    Location
    Key West, FL
    MS-Off Ver
    2016
    Posts
    624

    how to automatically close certain error messages regarding data queries?

    My workbook uses several data queries which are scheduled to refresh at certain intervals.

    As I test this I am seeing that I occasionally get error messages which indicate failure to load a query. If I close that window then the workbook "operates" again and the failed query fixes itself.

    I don't know if error messages have some kind of ID which VBA could identify but if so, is there a way for me to close out such error messages? (The workbook runs on a remote server. I'm attempting to automate the process as much as possible.)

    Thanks

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs
    MS-Off Ver
    MS Office 2019; O365
    Posts
    18,974

    Re: how to automatically close certain error messages regarding data queries?

    What happens if you add
    Please Login or Register  to view this content.
    to your code?

  3. #3
    Forum Contributor
    Join Date
    12-03-2008
    Location
    Key West, FL
    MS-Off Ver
    2016
    Posts
    624

    Re: how to automatically close certain error messages regarding data queries?

    I can try that but I've never written VBA. (the rest of the sheet uses built-in excel functions). Is there any other code above or below to make it run (and also, to always be "on"?) Thanks!

  4. #4
    Forum Contributor
    Join Date
    12-03-2008
    Location
    Key West, FL
    MS-Off Ver
    2016
    Posts
    624

    Re: how to automatically close certain error messages regarding data queries?

    closed thread due to inactivity

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 0
    Last Post: 05-30-2017, 04:48 PM
  2. Data Validation - 2 tests, 2 different error messages
    By davidm_uk in forum Excel General
    Replies: 4
    Last Post: 11-10-2013, 09:03 PM
  3. Question re: Data Validations and Custom Error Messages
    By StacyB in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-13-2013, 11:47 PM
  4. Write a error messages when a given user haven't activated the right Data Object
    By Luonas in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-13-2012, 10:33 AM
  5. Data Validation and Error Messages
    By CathNWN in forum Excel General
    Replies: 2
    Last Post: 05-24-2011, 11:34 AM
  6. Replies: 2
    Last Post: 07-19-2010, 03:15 PM
  7. error messages-Is there a way to show error messages
    By hans in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-02-2006, 12:45 PM

Tags for this Thread

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