Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 01-13-2014, 08:47 AM
Smallweed Smallweed is offline Inserted AutoText table incorrectly formatted - unless macro paused! Windows 7 64bit Inserted AutoText table incorrectly formatted - unless macro paused! Office 2010 32bit
Novice
Inserted AutoText table incorrectly formatted - unless macro paused!
 
Join Date: Aug 2013
Posts: 13
Smallweed is on a distinguished road
Default Inserted AutoText table incorrectly formatted - unless macro paused!

Hi,

I have some code that worked fine in Word 2003 but is going wrong in 2010. It just adds an autotext entry into the document: a single cell table. This table has been formatted to have:


PreferredWidthType = wdPreferredWidthPercent and
PreferredWidth = 100
When VBA is used to insert this autotext table inside another table (which happens all the time as the document is formatted as a two-column table), the preferred width type reverts to wdPreferredWidthPoints and becomes too wide. The strange thing is that if I put a breakpoint or a Stop ANYWHERE in this code and then run and resume the macro, all is well. Is this some kind of refresh issue? I've tried putting a Sleep delay AFTER the line that inserts the autotext into the code but curiously the table only gets inserted after the delay. I've tried also putting code that explicitly changes the preferred width options to percent/100 after the Sleep delay and this is ignored.
Any ideas gratefully received...
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Inserted AutoText table incorrectly formatted - unless macro paused! Picture inserted in table not visible - Again peytontodd Word 5 11-12-2013 07:04 AM
Inserted AutoText table incorrectly formatted - unless macro paused! Picture inserted in cell of table is not visible peytontodd Word 1 12-07-2012 08:36 PM
Numbered List paragraph style prints out incorrectly when converted to PDF - Help! kimrussell68 Word 0 02-02-2010 07:58 AM
Maintaining AUtotext Entries from an external table. kelzud Word Tables 0 07-28-2009 01:31 PM
Insert formatted table into word (mail merge) manojbmsce Mail Merge 0 09-25-2008 02:25 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 04:17 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft