[VBA]Dim objApp As Word.Application
Set objApp = New Word.Application
dim strToday
dim strCustomer
dim strReference
dim variable1
strToday = Date()
strCustomer = "Killian"
strReference = "Order notice"
variable1 = "blah blah"
With ActiveDocument.Paragraphs(1) 'This is where the error is for object missing
.Range.Font.Size = 12
.Range.Font.Bold =
True
.Alignment = wdAlignParagraphRight
End With
With ActiveDocument.Paragraphs(2)
.Range.Font.Size = 12
.Range.Font.Bold =
False
.Alignment = wdAlignParagraphLeft
End With
With ActiveDocument.Paragraphs(3)
.Range.Font.Size = 14
.Range.Font.Bold =
True
.Alignment = wdAlignParagraphCenter
End With
With ActiveDocument.Paragraphs(4)
.Range.Font.Size = 12
.Range.Font.Bold =
False
.Alignment = wdAlignParagraphRight
End With
With ActiveDocument.Paragraphs(5)
.Range.Font.Size = 12
.Range.Font.Bold =
False
.Alignment = wdAlignParagraphRight
End With
ObjWord.Selection.TypeText Text:= strToday & vbCrLf
ObjWord.Selection.TypeText Text:=strCustomer & vbCrLf
ObjWord.Selection.TypeText Text:=strReference & vbCrLf
ObjWord.Selection.TypeText Text:="variable1" & vbCrLf[/VBA]
I ran it with object missing.
Please comment

.Thanks.