Consulting

Results 1 to 4 of 4

Thread: Solved: Disabling Messages In Excel During Macro Runtime

  1. #1
    VBAX Regular
    Joined
    Nov 2008
    Posts
    44
    Location

    Solved: Disabling Messages In Excel During Macro Runtime

    Hi.

    I have a macro that opens up a bunch of workbooks one at a time, grabs data, and closes them. These workbooks have links to other workbooks and when I open them from my macro, Excel pops up a message asking me if I want to update the links. I don't want to update the links, and I don't want to see this message because it prevents the macro from running without user interaction.

    I have the following code to attempt to prevent these messages from appearing. This code seems to work fine when I run the macro in Excel 2007. But the messages still pop up when I run the code on Excel 2003. My users are using 2003, so I need this to work in that environment.


    [vba]Application.ScreenUpdating = False
    Application.DisplayAlerts = False
    Application.EnableEvents = False[/vba]

    Can anyone tell me why the above code is not preventing Excel from popping this message up? What is the code I should be using?


    Thanks very much.

    Duluter

  2. #2
    Moderator VBAX Wizard lucas's Avatar
    Joined
    Jun 2004
    Location
    Tulsa, Oklahoma
    Posts
    7,323
    Location
    I searched the forum using google at the top of the page:
    http://www.vbaexpress.com/forum/showthread.php?t=6413
    Steve
    "Nearly all men can stand adversity, but if you want to test a man's character, give him power."
    -Abraham Lincoln

  3. #3
    VBAX Regular
    Joined
    Nov 2008
    Posts
    44
    Location
    D'oh! Feeling stupid.

    Thanks very much.


    Duluter

  4. #4
    Moderator VBAX Wizard lucas's Avatar
    Joined
    Jun 2004
    Location
    Tulsa, Oklahoma
    Posts
    7,323
    Location
    Duluter, if that solves your problem please mark your thread solved using the thread tools at the top of the page...
    Steve
    "Nearly all men can stand adversity, but if you want to test a man's character, give him power."
    -Abraham Lincoln

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •