M
MJones
Hi All,
This macro worked in twelve different documents three weeks ago. Now
only part of it works. Any hints would be most appreciated. The only
updates would be any automatic updates made by Microsoft.
ClosePreview and PrintPreview still work, but FilePrintDefault does
not. This red box prints and the drawing objects check box is still
checked in Print Options.
Here's the code:
Dim mysetting
Sub FilePrintDefault()
' Prints the active document without drawing objects (red box)
mysetting = Options.PrintDrawingObjects
Options.PrintDrawingObjects = False
Dialogs(wdDialogFilePrint).Show
Options.PrintDrawingObjects = mysetting
End Sub
Sub FilePrintPreview()
' Previews the active document without drawing objects (red box)
mysetting = Options.PrintDrawingObjects
Options.PrintDrawingObjects = False
ActiveDocument.PrintPreview
End Sub
Sub ClosePreview()
' Turns drawing objects back on after exiting print preview
ActiveDocument.ClosePrintPreview
Options.PrintDrawingObjects = mysetting
End Sub
Thank you,
Michele
This macro worked in twelve different documents three weeks ago. Now
only part of it works. Any hints would be most appreciated. The only
updates would be any automatic updates made by Microsoft.
ClosePreview and PrintPreview still work, but FilePrintDefault does
not. This red box prints and the drawing objects check box is still
checked in Print Options.
Here's the code:
Dim mysetting
Sub FilePrintDefault()
' Prints the active document without drawing objects (red box)
mysetting = Options.PrintDrawingObjects
Options.PrintDrawingObjects = False
Dialogs(wdDialogFilePrint).Show
Options.PrintDrawingObjects = mysetting
End Sub
Sub FilePrintPreview()
' Previews the active document without drawing objects (red box)
mysetting = Options.PrintDrawingObjects
Options.PrintDrawingObjects = False
ActiveDocument.PrintPreview
End Sub
Sub ClosePreview()
' Turns drawing objects back on after exiting print preview
ActiveDocument.ClosePrintPreview
Options.PrintDrawingObjects = mysetting
End Sub
Thank you,
Michele