Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 02-14-2024, 01:54 PM
RRB's Avatar
RRB RRB is offline Closing Word via a macro Windows 11 Closing Word via a macro Office 2021
Susan Flamingo
Closing Word via a macro
 
Join Date: May 2014
Location: The Holy City of Jerusalem
Posts: 302
RRB is on a distinguished road
Default Closing Word via a macro


I would guess you cannot have a macro totally close Word because closing it us not a function from *within* Word but from outside, right?
But how could we have a macro save the current file and then close that file, leaving the Word environment open?
Reply With Quote
  #2  
Old 02-14-2024, 04:44 PM
Guessed's Avatar
Guessed Guessed is offline Closing Word via a macro Windows 10 Closing Word via a macro Office 2016
Expert
 
Join Date: Mar 2010
Location: Canberra/Melbourne Australia
Posts: 4,176
Guessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant future
Default

You can kill the application with
Code:
Application.Quit
You can save and close a document but keep the application open with
Code:
ActiveDocument.Close SaveChanges:=True
__________________
Andrew Lockton
Chrysalis Design, Melbourne Australia
Reply With Quote
  #3  
Old 02-14-2024, 11:33 PM
RRB's Avatar
RRB RRB is offline Closing Word via a macro Windows 11 Closing Word via a macro Office 2021
Susan Flamingo
Closing Word via a macro
 
Join Date: May 2014
Location: The Holy City of Jerusalem
Posts: 302
RRB is on a distinguished road
Default

Wow! That was short and sweet
Thank you
Susan
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Closing Word via a macro Error in Macro to Add 2 Spaces After Closing Parenthesis sleake Word 2 09-16-2013 04:54 AM
Closing Word files Humptydingo Word 5 09-07-2013 10:17 AM
Word doc bug when closing from userform command button click macro Joe Patrick Word 1 07-05-2011 08:53 PM
Closing Word via a macro Word crashes when closing mbjackson Word 1 02-06-2010 01:01 AM
Closing docs in Word 2007 Stjamesg8 Word 5 06-03-2009 02:36 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 03:48 PM.


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