Consulting

Results 1 to 4 of 4

Thread: DisplayAlerts

  1. #1
    VBAX Mentor
    Joined
    Sep 2004
    Location
    Nashua, NH, USA
    Posts
    489
    Location

    DisplayAlerts

    The Help for DisplayAlerts in Excel 2003 states:

    The default value is True. Set this property to False if you don?t want to be disturbed by prompts and alert messages while a macro is running; any time a message requires a response, Microsoft Excel chooses the default response.

    If you set this property to False, Micorosoft Excel sets this property to True when the code is finished, unless you are running cross process code.

    When using the SaveAs method for workbooks to overwrite an existing file, the 'Overwrite' alert has a default of 'No', while the 'Yes' response is selected by Excel when the DisplayAlerts property is set equal to True.

    However, when I set DisplayAlerts=False, the opposite effect occurs when I use SaveAs, which is what I want.


    Is the documentation wrong?

  2. #2
    Interesting point. Just a few days ago I noticed the same thing when I was reading about Display Alert. Sadly, I haven't tested it to verify what they say.

  3. #3
    Site Admin
    Urban Myth
    VBAX Guru
    Joined
    May 2004
    Location
    Oregon, United States
    Posts
    4,940
    Location
    Quote Originally Posted by Howard Kaikow
    Is the documentation wrong?
    Yes.

    Surprised? Not hardly I think.

  4. #4
    Administrator
    VP-Knowledge Base
    VBAX Guru MOS MASTER's Avatar
    Joined
    Apr 2005
    Location
    Breda, The Netherlands
    Posts
    3,281
    Location
    Quote Originally Posted by firefytr
    Surprised? Not hardly I think.
    Not really no!
    _________
    Groetjes,

    Joost Verdaasdonk
    M.O.S. Master

    Mark your thread solved, when it has been, by hitting the Thread Tools dropdown at the top of the thread.
    (I don't answer questions asked through E-mail or PM's)

Posting Permissions

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