L
Laurie
I have the following code:
Function GOTOword()
Dim otable As Word.Table
Set objword = New Word.Application
objword.Visible = True
Set odoc = objword.Documents.Add
Set otable = odoc.Tables.Add(odoc.Bookmarks
("\endofdoc").Range, 6, 6)
otable.Cell(1, 1).Range.Text = Reports!
reportMondayGeneralamwithstaff
End Function
If I substitute "hi" for the reports!
reportMondayGeneralAMwithStaff, the word hi appears in the
table as I want it to. But, with the report in there, I
get a type mismatch. So, how should I be referring to the
report to get out of the type mismatch?
Function GOTOword()
Dim otable As Word.Table
Set objword = New Word.Application
objword.Visible = True
Set odoc = objword.Documents.Add
Set otable = odoc.Tables.Add(odoc.Bookmarks
("\endofdoc").Range, 6, 6)
otable.Cell(1, 1).Range.Text = Reports!
reportMondayGeneralamwithstaff
End Function
If I substitute "hi" for the reports!
reportMondayGeneralAMwithStaff, the word hi appears in the
table as I want it to. But, with the report in there, I
get a type mismatch. So, how should I be referring to the
report to get out of the type mismatch?