Re: Stopping AutoClose macro
- From: "Jezebel" <warcrimes@xxxxxxxxxxxxxx>
- Date: Wed, 24 May 2006 13:07:55 +1000
In place of AutoClose, you want the DocumentBeforeClose event. That has a
Cancel argument which, if set TRUE, prevents the document closing.
Read Help on 'Trapping Word events' for how to set it up.
"Stephen English" <StephenEnglish@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in
message news:65CEE508-F731-40AB-AD7D-DDEEEFF44C24@xxxxxxxxxxxxxxxx
I have put code in the AutoClose macro to check if a bookmark exists. If
it
doesn't I throw up an error messagebox. However, when they OK the
message
box, I want to cancel the autoclose so the document stays open. Exit Sub
doesn't work.
Any ideas please?
Stephen
.
- Prev by Date: Re: replace unknown characters in a variable
- Next by Date: Re: UserForm error
- Previous by thread: Re: replace unknown characters in a variable
- Next by thread: Macro Names
- Index(es):