Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Controlling non-wrapping cell behavior

Status
Not open for further replies.

McGinley57

Technical User
Feb 12, 2008
16
US
I about around the bend on this one...

I have a three-column table in one Word doc. The second and third columns cells are set to non-wrap. In my VBA code I dynamically load information from a spreadsheet into the various cells. In this table, when the second column expands beyond its preferred width, it pushes shrinks the first column, not the third, which is what I want. However, I just recreated the entire table from the bottom up (evidently there was corruption in the original file) and now when the second column expands, both the first and third columns give up width to the second.

I'm a middling VBA programmer. I control all my table formatting through code: preferred widths, text orientation, styles, wrapping, etc. This way I can easily fix problems that may inadvertently creep into the document. I cannot for the life of me get this new table to behave like the first. There's a property or SetWidth setting I'm not seeing that would cure this problem.

Thanks for any help.
 
Maybe you can play with the AutoFitBehavior method?

_________________
Bob Rashkin
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top