Word VBA - Eliminate Floating Object Tables -


i have ton of word documents "corrupted" tables. i've been able automate of repair process, 1 issue still beyond me.

many of tables floating objects - when show hidden formatting marks, see anchor table. can't leave documents this, need make inline.

i have segment of code "fixes" this, don't think solution. changing text wrapping "none" (the default - want be) "around" , "none", gets fixed. code is,

selection.tables(1).rows.wraparoundtext = true selection.tables(1).rows.wraparoundtext = false 

i'm sure there better way this. know of work? thanks!

i have no idea why flapping wraparoundtext flag solves problem, vba has alot of quirks that.

automating method of tables in document simple:

dim integer i=1 len(activedocument.tables)   activedocument.tables(i).rows.wraparoundtext = true   activedocument.tables(i).rows.wraparoundtext = false next 

Comments

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -