![]() |
|
#8
|
|||
|
|||
|
Hi,
then, if i am right in my assumption, i could create a template, a blank template, (never worked with templates ) with one of your codes only and then check for my file.docm if open and then close it.Additionally i would have in my file.docm: --------------------------------------------------------------------------------- Sub CloseDoc() ThisDocument.Close SaveChanges:=wdSaveChanges End Sub ... Application.OnTime When:=Now + TimeValue("00:00:30"), Name:="CloseDoc" ... --------------------------------------------------------------------------------- just for the case the only document open is file.docm. Is that approx. right? Greetings fops |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to dectect if close document and now no document open | skarden | Word VBA | 2 | 10-24-2022 07:03 AM |
Close Document Without Saving Prompt
|
Joe528 | Word | 3 | 10-08-2021 06:12 PM |
| Document close if/then/else error | eduzs | Word VBA | 1 | 01-02-2021 05:56 AM |
| Save and Close powerpoint if it is inactive | MetteGaga | PowerPoint | 0 | 04-16-2015 05:14 AM |
| Prompt when close the document | ubns | Word | 15 | 04-29-2012 10:07 PM |