Re: prevent MS word to popup an error.
From: John Smith (metaphis2k2_at_hotmail.com)
Date: 05/10/04
- Next message: JR: "Re: printer install"
- Previous message: Richard Rekos: "Re: Front End input for scripts?"
- In reply to: Ray at <%=sLocation%> [MVP]: "Re: prevent MS word to popup an error."
- Messages sorted by: [ date ] [ thread ]
Date: 10 May 2004 12:14:54 -0700
I,ve tried that and it doesn't work it still display the error. Beside
I've tried using the On Error Resume next but it doesn't work either.
The message is not displayed but the script still halt. Here is the
line I use. I with nothing revelent before. If I could put some
setting so the script doesn't halt and I could write the error in a
file that would be nice
Set oDoc = oWord.Documents.Open(sFrom, False, True, False)
"Ray at <%=sLocation%> [MVP]" <myfirstname at lane34 dot com> wrote in message news:<uNB7oLpNEHA.3816@TK2MSFTNGP12.phx.gbl>...
> 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: JR: "Re: printer install"
- Previous message: Richard Rekos: "Re: Front End input for scripts?"
- In reply to: Ray at <%=sLocation%> [MVP]: "Re: prevent MS word to popup an error."
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|