Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
cancelling out of an "ActiveDocument.Save"
I have a line of code: ActiveDocument.Save in my Document_Close() sub in a
template. It asks for a filename, but if the user cancels instead of saving, it gives an error saying that the procedure failed. Is there a way to clean this up? |
#2
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
cancelling out of an "ActiveDocument.Save"
kill_beast wrote:
I have a line of code: ActiveDocument.Save in my Document_Close() sub in a template. It asks for a filename, but if the user cancels instead of saving, it gives an error saying that the procedure failed. Is there a way to clean this up? Before the ActiveDocument.Save, insert the statement On Error Resume Next -- Regards, Jay Freedman Microsoft Word MVP FAQ: http://word.mvps.org Email cannot be acknowledged; please post all follow-ups to the newsgroup so all may benefit. |
#3
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
cancelling out of an "ActiveDocument.Save"
That did it.
Thank you very much. "Jay Freedman" wrote: kill_beast wrote: I have a line of code: ActiveDocument.Save in my Document_Close() sub in a template. It asks for a filename, but if the user cancels instead of saving, it gives an error saying that the procedure failed. Is there a way to clean this up? Before the ActiveDocument.Save, insert the statement On Error Resume Next -- Regards, Jay Freedman Microsoft Word MVP FAQ: http://word.mvps.org Email cannot be acknowledged; please post all follow-ups to the newsgroup so all may benefit. |
Reply |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
I can't "Open" a downloaded template. Only "Save" and "Cancel" | Microsoft Word Help | |||
Folder or file details pop-up in "save" or "open" dialog boxes. | Microsoft Word Help | |||
Word shows "save" and "save" in drop down menu- no "save as" | Microsoft Word Help | |||
files I want to "save as" are all showing "file permission error" | Microsoft Word Help | |||
selecting "save as" freezes my screen. "not responding" appears. | Microsoft Word Help |