![]() |
#1
|
|||
|
|||
![]()
I have a macro that resizes all column of a certain colour, which includes this code:
Code:
thisCol.LeftPadding = CentimetersToPoints(0.1) thisCol.RightPadding = CentimetersToPoints(0.1) |
#2
|
|||
|
|||
![]()
Probably because Column does not have a LeftPadding or RightPadding property. You’ll need to loop through the Cells collection of the column.
|
#3
|
|||
|
|||
![]() Quote:
Code:
thisTable.LeftPadding = CentimetersToPoints(0.1) thisTable.RightPadding = CentimetersToPoints(0.1) |
#4
|
||||
|
||||
![]()
Assuming thisTable points to the correct table, your latest code works for me.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#5
|
|||
|
|||
![]()
Yes, it works for me, too. But it doesn't if I drag-and-widen a column first.
|
#6
|
||||
|
||||
![]()
Which is exactly what I did before running a macro with your code in it - and it worked.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#7
|
|||
|
|||
![]() Quote:
I'm afraid I'm stumped. I guess I'll have to loop through the cells and do it that way. Thanks for your help. |
![]() |
Thread Tools | |
Display Modes | |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Help with Tables in All Headers in Every Section - Remove cell's padding | Cendrinne | Word VBA | 6 | 03-06-2022 04:26 AM |
![]() |
Wild Bee | Word VBA | 3 | 02-10-2021 12:44 AM |
Padding/Spacing above and below images | mwilburn01 | Word | 3 | 10-17-2019 08:51 PM |
Reduce Pie Chart Padding | Rabscuttle | PowerPoint | 0 | 07-05-2012 11:05 AM |
![]() |
aryunis | Word | 3 | 01-13-2012 04:25 AM |