![]() |
#2
|
||||
|
||||
![]()
Part 1 on all tables, succeeded.
Code:
Dim xTbl As Table Dim aCel As Cell Dim oRng As Range For Each xTbl In ActiveDocument.Range.Tables For Each aCel In xTbl.Range.Cells If aCel.Range.Characters.First = "(" Then aCel.Range.ParagraphFormat.RightIndent = InchesToPoints(0.04) Else End If Next aCel Next Application.ScreenUpdating = True Application.ScreenRefresh DoEvents lbl_Exit: Set xTbl = Nothing Set oRng = Nothing Exit Sub On Error GoTo 0 |
Tags |
alignment, all tables, help please |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
Cendrinne | Word VBA | 3 | 03-06-2022 04:42 AM |
Need Help to Script to align all the tables only as of a section to end of doc? | Cendrinne | Word VBA | 4 | 04-05-2021 11:37 AM |
Using numbered list style, how to indent text immediately following heading to match heading indent? | SpechtacularDave | Word | 3 | 09-25-2019 01:22 PM |
Difference between first line Indent and Left Indent | kingston123 | Word | 3 | 09-25-2018 02:47 PM |
![]() |
olybobo | Excel Programming | 1 | 05-26-2016 01:09 AM |