of97/NT & of2k/w2kPro
Have an application that reads in a text file comprised of three fields
with a tag indicating the style to be applied.
Originally getting a "Formatting too Complex" message and, thanks to
Google as well as hints from prior posts determined that it's a problem
with re-defining a line's style more than once.
I re-defined my styles, setting the "Following style" to what is the
usual sequence of the text and only formatting on an exception basis.
This got me further into the file-which can run to 1,500 records with
two pieces of text on each record-but still got the message. I then
cleared the Undo stack after each record and finally "capitulated" and
did a save after each block of twenty records (arbitrary #).
It works but takes about 6 minutes to complete the task and gets slower
and slower as it goes.
The above is on my home machine (2k) and I know that it will take an
eternity at work ('97), plus the fact that there is a difference in when
I have to do the save between the two machines.
I can accept, grudgingly(?) what *I* consider to be a bug in Word
regarding the "Formatting..." error but is this behaviour (slowing down)
a function of the machine or is there something I can do to speed it up?


--
Regards;
Rob
------------------------------------------------------------------------

Macro execution slows down by DA

DA
Thu Jul 01 00:05:56 CDT 2004

Hi Rob,

You say that you're already clearing the undo buffer, but
I'd also include a "DoEvents" into your routine.

Also have a read of the following, which will help with
speed:

http://www.word.mvps.org/faqs/interdev/MakeAppInvisible.ht
m

All the best,
Dennis

>-----Original Message-----
>of97/NT & of2k/w2kPro
>Have an application that reads in a text file comprised
of three fields
>with a tag indicating the style to be applied.
>Originally getting a "Formatting too Complex" message
and, thanks to
>Google as well as hints from prior posts determined that
it's a problem
>with re-defining a line's style more than once.
>I re-defined my styles, setting the "Following style" to
what is the
>usual sequence of the text and only formatting on an
exception basis.
>This got me further into the file-which can run to 1,500
records with
>two pieces of text on each record-but still got the
message. I then
>cleared the Undo stack after each record and
finally "capitulated" and
>did a save after each block of twenty records (arbitrary
#).
>It works but takes about 6 minutes to complete the task
and gets slower
>and slower as it goes.
>The above is on my home machine (2k) and I know that it
will take an
>eternity at work ('97), plus the fact that there is a
difference in when
>I have to do the save between the two machines.
>I can accept, grudgingly(?) what *I* consider to be a
bug in Word
>regarding the "Formatting..." error but is this
behaviour (slowing down)
>a function of the machine or is there something I can do
to speed it up?
>
>
>--
>Regards;
>Rob
>---------------------------------------------------------
---------------
>
>
>.
>