Re: prevent MS word to popup an error.
From: Ray at <%=sLocation%> [MVP] (%=sLocation%)
Date: 05/10/04
- Next message: Ray at <%=sLocation%> [MVP]: "Re: Send forgotten password help"
- Previous message: Lennard Donkers: "Re: Best books for learning to script?"
- In reply to: John Smith: "prevent MS word to popup an error."
- Next in thread: John Smith: "Re: prevent MS word to popup an error."
- Reply: John Smith: "Re: prevent MS word to popup an error."
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 10 May 2004 09:30:05 -0400
You could try:
oYourWordObject.DisplayAlerts = 0 '''wdAlertsNone
''your code
Ray at work
"John Smith" <metaphis2k2@hotmail.com> wrote in message
news:71270ba9.0405100516.6e3b4a8e@posting.google.com...
> I'm using VBS to batch process conversion from rtf to txt using a MS
> Word object. Onfortunatly sometimes word can't read the rtf file and
> popup an error and thus halt the script. I was wondering if it would
> be possible to catch the error instead so the script could go on with
> the other files (ie. I don't want a popup window displaying the error)
>
> The error is produced by MS word itself and not the VB script
>
> Thx for your help
- Next message: Ray at <%=sLocation%> [MVP]: "Re: Send forgotten password help"
- Previous message: Lennard Donkers: "Re: Best books for learning to script?"
- In reply to: John Smith: "prevent MS word to popup an error."
- Next in thread: John Smith: "Re: prevent MS word to popup an error."
- Reply: John Smith: "Re: prevent MS word to popup an error."
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|