Discussion:
Table text wrapping property from VBA?
(too old to reply)
Chris Peacock
2006-02-16 10:51:12 UTC
Permalink
Is there any way to retrieve/set the "Text Wrapping" property
(None/Around) of a table programmatically? I have weird problems
inserting text into text-wrapped tables and need to temporarily change
this option while I manipulate the table's contents.

Thanks,
Chris Peacock.
Jay Freedman
2006-02-16 16:00:28 UTC
Permalink
Post by Chris Peacock
Is there any way to retrieve/set the "Text Wrapping" property
(None/Around) of a table programmatically? I have weird problems
inserting text into text-wrapped tables and need to temporarily change
this option while I manipulate the table's contents.
Thanks,
Chris Peacock.
From the VBA help topic on the WrapAroundText property:
This example sets Microsoft Word to wrap text around the first table in the
document.

ActiveDocument.Tables(1).Rows.WrapAroundText = True<<<<
-- Regards,Jay FreedmanMicrosoft Word MVP FAQ:
http://word.mvps.orgEmail cannot be acknowledged; please post all follow-ups
to the newsgroup so all may benefit.
Chris Peacock
2006-02-16 16:12:59 UTC
Permalink
Thanks Jay, I didn't think it would be that simple, after scouring the
object model and Google! I didn't expect it in the Rows collection....

Thanks again.

Loading...