F
Fred Holmes
Word 2003 In a Table, using a macro:
I can customize the cell padding with the following code:
With Selection.Cells(1)
.TopPadding = InchesToPoints(0.05)
.BottomPadding = InchesToPoints(0.05)
.LeftPadding = InchesToPoints(0.05)
.RightPadding = InchesToPoints(0.05)
.WordWrap = True
.FitText = False
End With
which code was obtained by recording "keystrokes" (mouse clicks and
keystrokes).
If I then run a record-keystroke macro to remove the custom padding
from the cell I get only the last two lines of code (.WordWrap and
..FitText). The "TopPadding =", etc., statements are missing
altogether. But running this "remove" macro doesn't work. The
existing custom padding in the selected cell remains.
Is there a VBA statement that will remove the custom padding from the
selected cell?
Thanks,
Fred Holmes
I chose to post this under "Tables" rather than macros or VBA, and did
not cross-post. Hope I did it correctly.
I can customize the cell padding with the following code:
With Selection.Cells(1)
.TopPadding = InchesToPoints(0.05)
.BottomPadding = InchesToPoints(0.05)
.LeftPadding = InchesToPoints(0.05)
.RightPadding = InchesToPoints(0.05)
.WordWrap = True
.FitText = False
End With
which code was obtained by recording "keystrokes" (mouse clicks and
keystrokes).
If I then run a record-keystroke macro to remove the custom padding
from the cell I get only the last two lines of code (.WordWrap and
..FitText). The "TopPadding =", etc., statements are missing
altogether. But running this "remove" macro doesn't work. The
existing custom padding in the selected cell remains.
Is there a VBA statement that will remove the custom padding from the
selected cell?
Thanks,
Fred Holmes
I chose to post this under "Tables" rather than macros or VBA, and did
not cross-post. Hope I did it correctly.