Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / February 2006

Tip: Looking for answers? Try searching our database.

Table text wrapping property from VBA?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Chris Peacock - 16 Feb 2006 10:51 GMT
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 - 16 Feb 2006 16:00 GMT
> Is there any way to retrieve/set the "Text Wrapping" property
> (None/Around) of a table programmatically? I have weird problems
[quoted text clipped - 3 lines]
> 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 - 16 Feb 2006 16:12 GMT
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.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.