Re: Suppress Prompt
Lynn wrote:
I have created a macro that performs some actions & then closes the
active file. I would like to suppress the prompt that appears when
the file closes "Do you want to save the changes to Document X?" (ie
close the file without saving any changes) Is this possible? If so,
how?
There's an optional argument to the Close method that controls that. Try
this:
ActiveDocument.Close SaveChanges:=wdDoNotSaveChanges
--
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.
.
Relevant Pages
- Re: suppress output
... how can one suppress the output of the tcl prompt? ... searching the docs did not help me much. ... The prompt only shows up ... (comp.lang.tcl) - Re: Enable automatic refresh prompt
... If you are talking about updating links, in xl2002 and earlier, you can ... either have the links update with no prompt or be prompted. ... in the workbook.Open command to suppress it. ... (microsoft.public.excel.programming) - Re: Enable automatic refresh prompt
... This data refresh it is prompting for is for ... > either have the links update with no prompt or be prompted. ... > code from another workbook, I don't believe displayalerts will suppress ... > in the workbook.Open command to suppress it. ... (microsoft.public.excel.programming) - Re: suppress output
... how can one suppress the output of the tcl prompt? ... The prompt only shows up interactively, and running interactively without a prompt seems highly unusual. ... Can you describe your problem in any more detail than "how can one suppress the output of the tcl prompt"? ... vast majority of scripts this isn't necessary. ... (comp.lang.tcl) - Re: Replace Existing File
... Will save without a prompt. ... Lynn wrote: ... I am using the following code to save the active workbook: ... Dave Peterson ... (microsoft.public.excel.programming) |
|