Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.docmanagement
kill_beast[_2_] kill_beast[_2_] is offline
external usenet poster
 
Posts: 13
Default 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   Report Post  
Posted to microsoft.public.word.docmanagement
Jay Freedman Jay Freedman is offline
external usenet poster
 
Posts: 9,854
Default 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   Report Post  
Posted to microsoft.public.word.docmanagement
kill_beast[_2_] kill_beast[_2_] is offline
external usenet poster
 
Posts: 13
Default 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

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
I can't "Open" a downloaded template. Only "Save" and "Cancel" Dave Microsoft Word Help 1 April 4th 08 02:28 PM
Folder or file details pop-up in "save" or "open" dialog boxes. GW Microsoft Word Help 2 November 18th 06 08:27 AM
Word shows "save" and "save" in drop down menu- no "save as" JenniferK Microsoft Word Help 4 May 26th 06 06:21 PM
files I want to "save as" are all showing "file permission error" PHDOC Microsoft Word Help 0 May 24th 06 05:28 PM
selecting "save as" freezes my screen. "not responding" appears. justtoobusy Microsoft Word Help 1 April 19th 06 02:20 AM


All times are GMT +1. The time now is 08:49 AM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"