Table cells shift on document load

M

mark

I have a fully automated (Word, Excel, Access) mail-merge document. The
document contains several nested tables side-by-side and all data sources are
late bound (@ run time). When the document is opened manually in Word, the
tables 'shimmer' as the nested tables align themselves: takes ~2sec. However
under automation, the nested cells do not align: specifically right aligned
nested subtables. I have tried a Timer pause loop and MsgBox to pause
execution and allow the nested tables to align after the Document_Open event,
all to no avail: pause works but no 'shimmer' of alignment. I need to run
minimized w/o user intervention. Any Ideas, Workarounds, Obscure Properties
or Methods are appreciated.
 
H

Helmut Weber

Hi Mark,
I've encountered problems with auto-macros, too.
In special, I wasn't able to place iconbars
where I wanted them to be. They were not existent
until auto-macos where completed.
The reason seems to be, that all components of a doc
are accessable only after completion of autoopen or autoexec.
Doevents, APIsleep and so didn't help, as long as they
where inside the auto-macro.
What helped was an ontime-macro, called from inside
the auto-macro. Of course, you have to hold automation
until the ontime-macro has been executed.
But I think, you can handle that,
.... if it helps at all.

Greetings from Bavaria, Germany

Helmut Weber, MVP
"red.sys" & chr(64) & "t-online.de"
Word XP, Win 98
http://word.mvps.org/
 

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