Thanks,
I've not quite got it right yet but will soldier on. All replies are helping me understand VBA a little more.
Can I be really cheeky? I've copied the whole macro below: , where am I going wrong????
Sub Table()
'
' Table Macro
'
'
ActiveDocument.Tables.Add Range:=Selection.Range, NumRows:=5, NumColumns:= _
3, DefaultTableBehavior:=wdWord9TableBehavior, AutoFitBehavior:= _
wdAutoFitFixed
With Selection.Tables(1)
If .Style <> "Table Grid" Then
.Style = "Table Grid"
End If
.ApplyStyleHeadingRows = True
.ApplyStyleLastRow = False
.ApplyStyleFirstColumn = True
.ApplyStyleLastColumn = False
.ApplyStyleRowBands = True
.ApplyStyleColumnBands = False
End With
Dim mrgrng As Range
With Selection.Tables(1)
For i = 1 To 2
Set mrgrng = .Cell(i, 1).Range
mrgrng.End = .Cell(i, 2).Range.End
mrgrng.Cells.Merge
Next i
End With
Selection.TypeText Text:="texte"
Selection.MoveRight Unit:=wdCell
Selection.TypeText Text:="e"
Selection.MoveRight Unit:=wdCell
Selection.TypeText Text:="e"
Selection.MoveRight Unit:=wdCell
Selection.TypeText Text:="e"
Selection.MoveRight Unit:=wdCell
Selection.TypeText Text:="e"
Selection.MoveRight Unit:=wdCell
Selection.TypeText Text:="e"
Selection.MoveRight Unit:=wdCell
Selection.TypeText Text:="e"
Selection.MoveRight Unit:=wdCell
Selection.TypeText Text:="e"
Selection.MoveRight Unit:=wdCell
Selection.TypeText Text:="e"
Selection.MoveRight Unit:=wdCell
Selection.TypeText Text:="e"
Selection.MoveRight Unit:=wdCell
Selection.TypeText Text:="e"
Selection.MoveRight Unit:=wdCell
Selection.TypeText Text:="e"
Selection.MoveRight Unit:=wdCell
Selection.TypeText Text:="e"
Selection.MoveRight Unit:=wdCell
Selection.TypeText Text:="e"
Selection.MoveRight Unit:=wdCell
Selection.TypeText Text:="e"
End Sub