Re: prevent MS word to popup an error.

From: John Smith (metaphis2k2_at_hotmail.com)
Date: 05/10/04


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



Relevant Pages

  • Re: Internet Explorer - Firefox
    ... Firefox, the problem is how publisher displayed it in IE. ... I imagine it is a problem with how the script is ... suppose to display a search box for flights..i am pretty sure that the ...
    (microsoft.public.publisher.webdesign)
  • Re: Display a block of text in Firefox & Safari
    ... in FireFox and Safari it appears as a narrow ... There seems to be a needless reliance on the global variable 'NumberOfQuestionsShown', I've suggested a different strategy below that should be easier to maintain - it uses a single class to hide/show questions so the script doesn't need to know how many questions there are nor do they need to be consecutively numbered. ... var questionNum; ... Instead of going through all questions, how about giving them all the same style, then just modify the style to change display from 'none' to ''. ...
    (comp.lang.javascript)
  • Re: Conditional formatting
    ... happens if you step through the script in Script Debugger? ... I'd like to dynamically place a button on my layout. ... I only want the "Show All" button to display when I'm ... calculation determining how the button is labelled and describing what ...
    (comp.databases.filemaker)
  • Re: Internet Explorer - Firefox
    ... the Pub 2003 coding engine produces the code. ... the problem is how publisher displayed it in IE. ... original script given to you from the source, ... suppose to display a search box for flights..i am pretty sure ...
    (microsoft.public.publisher.webdesign)
  • Re: Internet Explorer - Firefox
    ... the Pub 2003 coding engine produces the code. ... the problem is how publisher displayed it in IE. ... I imagine it is a problem with how the script ... suppose to display a search box for flights..i am pretty sure ...
    (microsoft.public.publisher.webdesign)