JRobinson22
01-20-2013, 09:45 AM
Hi - I have a very simple macro to select all tables in long documents and consistently format them (see below). I'm trying to add a line of code to this which will also indent all tables by 1/2 inch. Can anyone assist with this? Thanks!
Sub TableX()
'
' TableX Macro
'
'
Dim oTb As Table
For Each oTb In ActiveDocument.Tables
oTb.Style = "Table Elegant"
oTb.AutoFitBehavior (wdAutoFitWindow)
Next oTb
End Sub
Sub TableX()
'
' TableX Macro
'
'
Dim oTb As Table
For Each oTb In ActiveDocument.Tables
oTb.Style = "Table Elegant"
oTb.AutoFitBehavior (wdAutoFitWindow)
Next oTb
End Sub