i used...
Private Sub Command19_Click()
Dim w As New Word.Application, r As Range
w.Documents.Add
With w.ActiveDocument
Set r = .Range
.Tables.Add r, 10, 4
With .Tables(1)
.Borders.OutsideLineStyle = wdLineStyleSingle
.Borders.InsideLineStyle = wdLineStyleSingle
.Cell(1, 1).Range.InsertAfter "Account No:"
.Cell(1, 2).Range.Italic = True
.Cell(1, 2).Range.InsertAfter "Insert Invoice ID here"
.Cell(3, 1).Range.InsertAfter "In Account With:"
.Cell(3, 2).Range.InsertAfter [Form_Client_Info]![Client_Name] & vbCrLf & [Form_Client_Info]![Client_address]
.Cell(4, 1).Range.InsertAfter "Reference:"
.Cell(4, 2).Range.Bold = True
.Cell(4, 2).Range.InsertAfter [Form_Projects]![Project_ID]
.Cell(5, 1).Range.InsertAfter "Date:"
End With
End With
w.Visible = True
End Sub
still working on it though...
i don't know how to get this to work -
Cell(5, 2).Range.InsertDateTime [mm - dd - yyyy]
- the last bit ... any ideas?
boswell