Speed of macros in table revisited

D

Dave Neve

Hi

A few days ago (25 08 2005), I asked a question about the speed of a macro
in a long table which had been reduced to a snail's pace.

Interestingly, I have since stumbled on the cause.

I was also having trouble combining tables and someone in another group told
me to check to see if 'word wrap' was activated.

The moment I deactivated it, I noticed that my macro speed returned to
normal as an unexpected added bonus

This is just for information as everyone was so helpful.

As to why the macro doesn't like 'word wrap' , I'll leave to you.

Thanks

Dave Neve
 
K

Klaus Linke

Hi Dave,

Thank you for posting this. Very interesting, and I haven't heard that
before.

That's "Table > Table properties, Cell tab > Options > Word wrap"? Then it
seems crazy that it makes a difference, since the setting has no effect at
all when table widths are set to "fixed" (which is what you usually set to
speed up tables).

Regards,
Klaus
 
K

Klaus Linke

That's "Table > Table properties, Cell tab > Options > Word wrap"? Then it
seems crazy that it makes a difference, since the setting has no effect at
all when table widths are set to "fixed" (which is what you usually set to
speed up tables).

Sorry, column widths, not table widths.

Either set
MyTable.AllowAutoFit = False
(corresponding to "Table > Properties > Table tab Options > Allow automatic
size change").

Or this will also be set automatically if you use
MyTable.AutoFitBehavior wdAutoFitFixed

(corresponding to "Table > AutoFit > Fixed column widths")

Do you remember whether you tried one of those lines? Or had set the option
manually?

Klaus
 
J

JethroUK©

it's probably because word-wrapping is an automated task and Word is
constantly reconfiguring the text in the background
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top