Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 10-08-2021, 08:03 AM
Joe528 Joe528 is offline Close Document Without Saving Prompt Windows 10 Close Document Without Saving Prompt Office 2013
Novice
Close Document Without Saving Prompt
 
Join Date: Oct 2021
Posts: 2
Joe528 is on a distinguished road
Post Close Document Without Saving Prompt

Trying to find a way to close a Word doc without saving or getting the prompt to save. Tried making a macro I found elsewhere, but didn't work. Ideally I'd like to assign a button in the quick access ribbon or a keyboard stroke. Any ideas?
Reply With Quote
  #2  
Old 10-08-2021, 10:13 AM
Charles Kenyon Charles Kenyon is offline Close Document Without Saving Prompt Windows 10 Close Document Without Saving Prompt Office 2019
Moderator
 
Join Date: Mar 2012
Location: Sun Prairie, Wisconsin
Posts: 9,138
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

Here is a macro, to which you can assign a keyboard shortcut or QAT button:
Code:
Sub CloseNoSave()
     ' Charles Kenyon
    ' https://www.msofficeforums.com/word/47775-close-document-without-saving-prompt.html
    '
     With ActiveDocument
        .Saved = True
        .Close
    End With
End Sub

Last edited by Charles Kenyon; 10-08-2021 at 06:14 PM.
Reply With Quote
  #3  
Old 10-08-2021, 12:57 PM
Joe528 Joe528 is offline Close Document Without Saving Prompt Windows 10 Close Document Without Saving Prompt Office 2013
Novice
Close Document Without Saving Prompt
 
Join Date: Oct 2021
Posts: 2
Joe528 is on a distinguished road
Default

WOW----IT'S ALIVE, IT'S ALIVE---thank you very much! I learned something new about Word today as I have never used Macros.

Quote:
Originally Posted by Charles Kenyon View Post
Here is a macro, to which you can assign a keyboard shortcut or QAT button:
Code:
Sub CloseNoSave()
    ' Charles Kenyon
    ' https://www.msofficeforums.com/word/47775-close-document-without-saving-prompt.html
    '
      With ActiveDocument
        .Saved = True
        .Close
    End With
End Sub

Last edited by Charles Kenyon; 10-08-2021 at 06:16 PM.
Reply With Quote
  #4  
Old 10-08-2021, 06:12 PM
Charles Kenyon Charles Kenyon is offline Close Document Without Saving Prompt Windows 10 Close Document Without Saving Prompt Office 2019
Moderator
 
Join Date: Mar 2012
Location: Sun Prairie, Wisconsin
Posts: 9,138
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

Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
How can I close my currently open Excel without it saving ? DBenz Excel 1 12-10-2020 12:18 PM
How to automatically prompt for document properties on first save of a document? dsv Word 2 10-05-2019 11:02 AM
Close Document Without Saving Prompt a save-as prompt every time i try to close my session willy0625 Word 5 01-08-2014 04:49 PM
Prompt when close the document ubns Word 15 04-29-2012 10:07 PM
Saving as PDF causes prompt for printable region out of range chrisxyz Word 0 02-22-2010 05:58 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 08:31 AM.


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