![]() |
|
|
|
#1
|
||||
|
||||
|
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? |
|
#2
|
||||
|
||||
|
You can kill the application with
Code:
Application.Quit Code:
ActiveDocument.Close SaveChanges:=True
__________________
Andrew Lockton Chrysalis Design, Melbourne Australia |
|
#3
|
||||
|
||||
|
Wow! That was short and sweet
![]() Thank you Susan |
|
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
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 |
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 |