here is my code
I get an Error on last line
run time error 424
Object required
any ideas
TIA
DougP, MCP, A+
I Built my own R2D2
I love this site and all you folks that helped me over the years!
Code:
Set objWord = CreateObject("Word.Application")
'Word Object is created - now let's fill it with data.
With objWord
.Visible = True
.Documents.Open ("F:\Task Order\ReportTemplates\sample.doc")
.ActiveDocument.Tables.Add Range:=Selection.Range, NumRows:=2, NumColumns:=9, DefaultTableBehavior:=wdWord9TableBehavior, AutoFitBehavior:=wdAutoFitFixed
I get an Error on last line
run time error 424
Object required
any ideas
TIA
DougP, MCP, A+
![[r2d2] [r2d2] [r2d2]](/data/assets/smilies/r2d2.gif)
I love this site and all you folks that helped me over the years!