View Single Post
 
Old 01-15-2014, 09:03 AM
Smallweed Smallweed is offline Windows 7 64bit Office 2010 32bit
Novice
 
Join Date: Aug 2013
Posts: 13
Smallweed is on a distinguished road
Default

Thanks for the tip but unfortunately it still doesn't work. It seems to be more fundamental to the way the VBA is running. If I put a break point after the AutoText insertion line and just resume the macro after it stops, the table inserts with the correct preferred width settings. Similarly if I put some code that intentionally errors, e.g.
For lngCtr = 1 To 10000000000#
Next
(this causes an overflow error)
if I then click out of the error message, all is well. Very strange
Reply With Quote