Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #4  
Old 11-24-2023, 02:16 PM
Charles Kenyon Charles Kenyon is offline How to check if a document is unsaved? Windows 11 How to check if a document is unsaved? Office 2021
Moderator
 
Join Date: Mar 2012
Location: Sun Prairie, Wisconsin
Posts: 9,584
Charles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant future
Default

Ctrl+S is your friend! If the file is unmodified, it does not do anything.

The following macro could be attached to a keyboard shortcut.
Code:
  Sub SavedDocumentQuery()
    ' Charles Kenyon 2023-Nov-24
    ' https://www.msofficeforums.com/word/51694-how-check-if-document-unsaved.html
    '  Is this document saved?
    MsgBox "This document is saved: " & ActiveDocument.Saved, vbInformation, "Is this document saved? True if it is."
  End Sub
Instructions for Installing Macros from Forums or Websites by Graham Mayor, MVP
Assigning Keyboard Shortcuts in Microsoft Word 2007-2021 (365)

You could get a lot fancier.

The presence of this in Office 2021 indicates that feedback from others was listened to.

See also: Automatically backup Word documents by Graham Mayor, MVP
Reply With Quote
 

Tags
document, notification, unsaved



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to check if a document is unsaved? Check if there is more than one font color used in a document guyglk Word VBA 5 01-28-2019 04:11 PM
How to check if a document is unsaved? Restore unsaved files Yisrael Word 7 04-30-2017 04:24 AM
Auto Save, and Recover unsaved->Not working 56_kruiser Word 2 11-19-2012 02:13 PM
How to check if a document is unsaved? Unsaved file contents retrieval Muthukrishnan V Word 1 09-17-2011 10:29 AM
How to check if a document is unsaved? Can you recover an unsaved file? Jay Kinetic Word 3 06-29-2011 01:07 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 06:40 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft