Results 1 to 4 of 4
  1. #1
    McArthurGDM is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jul 2014
    Posts
    215

    MSG Box Disable

    Hi,



    I have a loop in Access that will open Excel files and pull their data in a specified folder. A lot of these Excel files have message box warnings upon opening. The code stops to allow the user to click yes or no and you continue. There are a lot of files, so it is cumbersome to do this many times.

    Is there a line of code to put in Access VBA that will allow me to disable MSG boxes as they pop up in Excel?

    Thanks,

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    Exactly what is the warning?

    Post your code for analysis.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    McArthurGDM is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jul 2014
    Posts
    215
    Sorry. That wasn't clear.

    These particular Excel files have a On Workbook Open sub routine that displays a message telling the user that the Workbook is a macro-enabled workbook and to Enable and trust the source.

  4. #4
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    Can users set Excel application to accept all macro enabled files? This is Trust Center settings in the Excel application.

    Seems I saw this same topic in another recent thread, but was about Access macro warning.

    I don't think code can accomplish this because then what use would the Trust Center be? Macros must be enabled to allow code to run therefore code cannot run that would enable macros. Catch-22.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. disable shift key
    By AzizSader in forum Forms
    Replies: 3
    Last Post: 09-20-2014, 09:02 AM
  2. Disable certain keys
    By data808 in forum Forms
    Replies: 5
    Last Post: 03-01-2014, 10:47 PM
  3. Disable Form in .mde
    By wildthingcg in forum Programming
    Replies: 5
    Last Post: 09-15-2012, 09:33 PM
  4. Disable Field?
    By tylerg11 in forum Forms
    Replies: 4
    Last Post: 01-31-2012, 02:30 PM
  5. Disable ALT+TAB key using VBA
    By Yance in forum Programming
    Replies: 8
    Last Post: 08-27-2009, 10:36 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums