Re: Jumping Windows

From: John McGhie (john_at_mcghie.name)
Date: 12/06/04


Date: Mon, 06 Dec 2004 15:30:48 +1100

Yes. Application.screenupdating = False

It also results in a substantial performance improvement because it disables
the display code, which occupies something like 80 per cent of the CPU time
when Word is working.

Warning: There's another one: application.visible = false
You can use that to get a really serious performance improvement. But if
you do, be aware that things like ActiveDocument and Selection all become
Null, because no document is "active". It also leads to some disconcerting
user behaviour because they shut the lid and walk away half-way through your
long batch job :-)

If you are going to muck around with this, tell us what you are doing:
there's a few traps for the unwary. It's often better to set the View to
Normal View, which uses a lot less horsepower but retains the ability to
show the user there is something happening.

Hope this helps

On 6/12/04 10:35 AM, in article BDD94BB1.EA2%oz.springs@anywhere.com, "Oz
Springs" <oz.springs@anywhere.com> wrote:

> When I run some macros, the document window jumps quite a lot.
>
> In FileMaker there is a command called ³Freeze Window² which gives the
> impression that nothing is happening while the script is doing various
> things. Is there an equivalent for Word? Iıve looked for ³Freeze window² in
> VB Help but thatıs not the right phrase and I donıt know what to look for in
> VB
>
> Thanks for any help
>
>
>
>
> Oz
>

-- 
Please reply to the newsgroup to maintain the thread.  Please do not email
me unless I ask you to.
John McGhie <john@mcghie.name>
Consultant Technical Writer
Sydney, Australia +61 4 1209 1410