![]() |
#1
|
|||
|
|||
![]()
Hi guys,
![]() I'm very new to VBA and i would really appreciate if you guys can help me on this macro i'm working on. I have word document contains tables formatted with cell margin option in word. I was trying to convert these in to Paragraph indents. So far i came up with this: Sub CellPadding() Dim myCell As Cell Dim myRow As Row Dim myTable As Table Set myTable = Selection.Tables(1) With myTable For Each myRow In myTable.Rows For Each myCell In myRow.Cells If myCell.LeftPadding = CentimetersToPoints(0.5) Then Set ParagraphForamat.LeftIndent = 72 End If Next Next End With End Sub I might did something stupid in this macro. Please help me to solve this issue. basically i want to change the cell padding value to paragraph indent in the cell. |
Tags |
cell padding, cell padding vba, cells word vba |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
Richtriebe | Word | 4 | 03-14-2016 11:57 AM |
Word Table internal cell margin? | Powelland | Word Tables | 2 | 12-09-2015 11:42 AM |
![]() |
Reuven | Word | 1 | 12-03-2015 04:25 PM |
Macro to change cell references | SaneMan | Excel Programming | 6 | 10-01-2013 02:49 PM |
![]() |
Triscia | Word VBA | 3 | 01-30-2013 04:18 PM |