Thread
:
How to dectect if close document and now no document open
View Single Post
05-03-2017, 08:27 PM
gmayor
Windows 10
Office 2016
Expert
Join Date: Aug 2014
Posts: 4,144
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
gmayor
View Public Profile
Find all posts by gmayor