Lisa was telling us:
Lisa nous racontait que :
> Hi,
>
[quoted text clipped - 28 lines]
> Thanks
> Lisa
You could have both macros in one, i.e., if the current cursor location is
not in a table, create and format a table, otherwise just format the table:
'_______________________________________
Sub TableFormatInsert()
Dim tblFormat As Table
If Not Selection.Information(wdWithInTable) Then
Set tblFormat = ActiveDocument.Tables.Add(Range:=Selection.Range, _
NumRows:=2, NumColumns:=2,
DefaultTableBehavior:=wdWord9TableBehavior, _
AutoFitBehavior:=wdAutoFitFixed)
Else
Set tblFormat = Selection.Tables(1)
End If
With tblFormat
If .Range.Style <> "BodyTable" Then
.Range.Style = "BodyTable"
End If
.ApplyStyleHeadingRows = True
.ApplyStyleLastRow = True
.ApplyStyleFirstColumn = True
.ApplyStyleLastColumn = True
End With
End Sub
'_______________________________________

Signature
Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
jmarcilREMOVE@CAPSsympatico.caTHISTOO
Word MVP site: http://www.word.mvps.org