Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

vba to set left table margin

Status
Not open for further replies.

weeze2

Technical User
Jun 18, 2002
129
DK
Hi

How can one set the left margins og all tables in a document using VBA?

I tried the record macro trick but inforuanately you cant move the table when recording :-(

thanks
 
Try somethin like:
Code:
Sub LeftTableMargin()

Dim lngT As Long
For lngT = 1 To ActiveDocument.Tables.Count
    ActiveDocument.Tables(lngT).Rows.SetLeftIndent 50, wdAdjustNone
Next lngT

End Sub

[pc2]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top