J
John
I'm need to print a Word document that is embedded in
an Excel worksheet. The code I currently have will work
successfully once, but will fail on the second attempt.
I would appreciate any help at all. Here is the code
that I currently have...
Sub Comments()
Set wrd = CreateObject("Word.Application")
wrd.Visible = True
Worksheets("Comments").OLEObjects("Object 6").Select
Worksheets("Comments").OLEObjects("Object 6").Activate
With ActiveDocument
.PrintOut
.Close SaveChanges:=wdDoNotSaveChanges
End With
wrd.Quit
End Sub
Thanks
an Excel worksheet. The code I currently have will work
successfully once, but will fail on the second attempt.
I would appreciate any help at all. Here is the code
that I currently have...
Sub Comments()
Set wrd = CreateObject("Word.Application")
wrd.Visible = True
Worksheets("Comments").OLEObjects("Object 6").Select
Worksheets("Comments").OLEObjects("Object 6").Activate
With ActiveDocument
.PrintOut
.Close SaveChanges:=wdDoNotSaveChanges
End With
wrd.Quit
End Sub
Thanks