RP1America
Technical User
I have a VBA that when the user presses the 'OK' button, it opens, inserts text, saves and closes them.
I would like to be able to completely close down Word, yet only if the user has no other Word docs open.
When I use ActiveDocument.Close, it closes the document that the VBA code is stored in yet leaves the Word application open.
When I use Application.Quit, it closes the Word application, regardless if the user has other docs open not pertaining to this VBA.
So, no other docs open = word application closes...
other docs open = application stays open, yet active document closes.
Any ideas?
I would like to be able to completely close down Word, yet only if the user has no other Word docs open.
When I use ActiveDocument.Close, it closes the document that the VBA code is stored in yet leaves the Word application open.
When I use Application.Quit, it closes the Word application, regardless if the user has other docs open not pertaining to this VBA.
So, no other docs open = word application closes...
other docs open = application stays open, yet active document closes.
Any ideas?