![]() |
|
#2
|
||||
|
||||
|
Are you overthinking this? Why not start the macro associated with the button with the lines
Code:
If Documents.Count = 0 Then
Beep
Exit Sub
End If
__________________
Graham Mayor - MS MVP (Word) (2002-2019) Visit my web site for more programming tips and ready made processes www.gmayor.com |
| Tags |
| after close, classes, vba |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Adding tables to Created word document whilst other word document open Help | rpb925 | Word VBA | 18 | 03-30-2016 04:45 PM |
Macro to Open to a Website When No Document Is Open
|
lostinwebspace | Word VBA | 1 | 02-13-2016 10:28 AM |
Run-time error '1004': Document not saved. The document may be open...
|
doctor_who12 | Excel Programming | 1 | 01-22-2014 04:47 PM |
| Prompt when close the document | ubns | Word | 15 | 04-29-2012 10:07 PM |
| Can't Open My Document | petra_lonely | Word | 0 | 03-09-2011 10:28 PM |