Re: prevent MS word to popup an error.

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Ray at <%=sLocation%> [MVP] (%=sLocation%)
Date: 05/10/04


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



Relevant Pages

  • Re: RichTextBoxes and RTF Files Redux
    ... etc., but when I open the file in Word, the margins are ... Unless the rtf file itself contains page margin information then MS ... codes into the correct place in the RTB's TextRTF property, ...
    (comp.lang.basic.visual.misc)
  • Re: Another Wordpad problem....
    ... a *.rtf file to it, ... Anyhow, 'Word' is something like 'Wordpad' but, of course, ... When I opened my *.rtf file in emacs, ... I don't see any tags. ...
    (rec.arts.sf.fandom)
  • RTF to DOC conversion
    ... ' Script program to convert RTF to DOC. ... Dim Response ... 'this sub procedure is copied from Peter Jamieson post ...
    (microsoft.public.word.conversions)
  • RTF to DOC conversion
    ... Script program to convert RTF to DOC. ... Dim Response ... 'this sub procedure is copied from Peter Jamieson post ...
    (microsoft.public.word.conversions)
  • RTF to DOC conversion
    ... Script program to convert RTF to DOC. ... Dim Response ... 'this sub procedure is copied from Peter Jamieson post ...
    (microsoft.public.word.conversions)