![]() |
|
#1
|
||||
|
||||
![]()
You can indeed use the .FitText method in a post-merge macro, but restrict its application to cells in which text wrapping occurs. For example:
Code:
With ActiveDocument.Tables(t).Cell(r, c).Range If .Characters.Last.Previous.Information(wdVerticalPositionRelativeToPage) <> _ .Characters.First.Information(wdVerticalPositionRelativeToPage) Then .FitTextWidth = w End If End With • t is the table # • r is the row # • c is the column# • w is the width in points
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#2
|
||||
|
||||
![]()
Thank you Paul.
But, I do not know how to input the row number, column number and column width in the code. The row number is 12, column number 2 and the column width is 2.38 inches. My vba "expertise" is to record repetitive tasks. But editing organic a code stump me. Marcia |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
Bumba | Excel Programming | 1 | 11-10-2019 11:36 AM |
![]() |
eduzs | Word VBA | 3 | 09-16-2018 04:13 AM |
![]() |
jrasicmark | Drawing and Graphics | 1 | 05-06-2014 04:38 PM |
Custom Animation: Faded Shrink? | Dingeling | PowerPoint | 2 | 12-14-2011 02:14 AM |
Possible to shrink .DOC file? | uoficowboy | Word | 0 | 06-09-2010 10:13 AM |