+ Reply to Thread
Results 1 to 2 of 2

Saving a doc, can't suppress dialog even with Application.DisplayAlerts=wdAlertsNone

  1. #1
    Registered User
    Join Date
    04-19-2019
    Location
    USA
    MS-Off Ver
    2010
    Posts
    5

    Saving a doc, can't suppress dialog even with Application.DisplayAlerts=wdAlertsNone

    My Word VBA system wants to save the target document every now and then, and it has tracked changes, which it should. But even if I set Application.DisplayAlerts=wdAlertsNone I still get a dalog box saying "The document being saved contains tracked changes. Continue with save?" (see attached), and not even SendKeys gets rid of it. I want it to simply save, and I doubt this is a rare sentiment, so isn't there a way to suppress this dialog box?
    Attached Images Attached Images

  2. #2
    Forum Guru macropod's Avatar
    Join Date
    12-22-2011
    Location
    Canberra, Australia
    MS-Off Ver
    Word, Excel & Powerpoint 2003 & 2010
    Posts
    3,578

    Re: Saving a doc, can't suppress dialog even with Application.DisplayAlerts=wdAlertsNone

    That message depends on your Trust Center privacy settings. You can go to File|Options|Trust Center>Trust Center Settings>Privacy Options and uncheck the option "Warm before printing, saving or sending a file that contains tracked changes or comments".

    If you need to retain those settings, then for the purposes of your code you could use something along the lines of:
    Please Login or Register  to view this content.
    or, for more flexibility with systems that may not be using that setting:
    Please Login or Register  to view this content.
    Last edited by macropod; 04-12-2021 at 09:14 PM.
    Cheers,
    Paul Edstein
    [Fmr MS MVP - Word]

+ 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. [SOLVED] Using Application.DisplayAlerts within Several Macros
    By brentjohn in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-03-2019, 06:29 AM
  2. Replies: 0
    Last Post: 06-10-2019, 07:50 AM
  3. [SOLVED] Application.displayalerts not changing
    By ggs22 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-15-2015, 08:12 AM
  4. [SOLVED] Application.DisplayAlerts !
    By ks1102 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-27-2013, 04:51 AM
  5. Application.DisplayAlerts not working
    By yogesh thakker in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-14-2010, 05:07 AM
  6. [SOLVED] Application.DisplayAlerts = False
    By Jim May in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 08-18-2006, 12:35 PM
  7. [SOLVED] Application.DisplayAlerts
    By TK in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-07-2005, 04:06 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