G'Day Klav,
Have you tried:-
Sub DoSomething()
Application.ScreenUpdating = False
:
'Something happens here, but changes are not displayed
:
Application.ScreenUpdating = True
End Sub
Word remains visible, but no Screen Updating occurs.
You must also arrange to set ScreenUpdating to True
in the event of the Macro halting due to an Error (i.e. in
your Error Trap).

Signature
Regards,
Pat Garard
Melbourne, Australia
_______________________
> We have a custom web-based application which passes data to Word and
> executes
[quoted text clipped - 23 lines]
>
> Need help with this.....please answer quickly.....thanks.
klav - 07 Jul 2005 12:35 GMT
Thanks for the quick response. The data that is being passed to Word from
the web application is visible in a document as soon as Word starts -- in
other words, my macro is not opening the file, it's already opened and
displayed in "document1." The screenupdating command doesn't take effect
soon enough -- you still see the data.
> G'Day Klav,
>
[quoted text clipped - 39 lines]
> >
> > Need help with this.....please answer quickly.....thanks.
Pat Garard - 07 Jul 2005 22:20 GMT
G'Day Klav,
I cannont 'see' your application, so it is not clear to me where
the Macro is called from.
If 'YOU' are starting Word (ie your Macro), then Start Word with
a startup switch such as :
(from help)
'/tTemplateName'
Start Word with a new document based on a template other than the
Normal template. Example: /tMyfax.dot
Note If the file name has spaces in it, enclose the complete name
in quotation marks - for example, /t"Elegant Report.dot"
(Put the code to suppress ScreenUpdating in the Document_New()
Procedure of the Template.)
OR
/mMacroName
Start Word and then run a specific macro. The /m switch also
prevents Word from running any AutoExec macros.
Example: /mSaleLead
(Put the code to suppress ScreenUpdating in the MacroName Proc
of the Normal Template.)
OR
combine these.

Signature
Regards,
Pat Garard
Melbourne, Australia
_______________________
> Thanks for the quick response. The data that is being passed to
> Word from
[quoted text clipped - 54 lines]
>> >
>> > Need help with this.....please answer quickly.....thanks.