|
|
|
date: Thu, 14 Aug 2008 13:28:23 -0700,
group: microsoft.public.word.vba.general
back
Re: VBA to change Display for Review setting
On Thu, 14 Aug 2008 17:40:01 -0700, megnotarte
wrote:
>Hi Jay,
>Thanks for the quick response. Here's the rub...I have been trying that, but
>it's not working. Basically I want it to go into "Final Showing Markup" on
>print of the document, but it appears that it isn't taking effect until after
>the print command is issued. Here's the code I'm using
>
>Private Sub appWord_DocumentBeforePrint(ByVal doc As Document, Cancel As
>Boolean)
> With ActiveWindow.View
> .RevisionsView = wdRevisionsViewFinal
> .ShowRevisionsAndComments = True
> End With
>
>
>End Sub
>
>I've tried using other function calls in that DocumentBeforePrint function,
>but it seems like they get stalled once the print dialog box shows up. After
>the dialog box is cleared (either by printing or canceling the print) it
>finishes up. Any idea what's going on?
>
>Thanks again for you help!
>Megan
Sorry, I don't have any idea what's going on, because I've never played with
that event function. I prefer to do things "the old-fashioned way" because I
know it works:
Sub FilePrint()
With ActiveWindow.View
.RevisionsView = wdRevisionsViewFinal
.ShowRevisionsAndComments = True
End With
Dialogs(wdDialogFilePrint).Show
End Sub
Sub FilePrintDefault()
With ActiveWindow.View
.RevisionsView = wdRevisionsViewFinal
.ShowRevisionsAndComments = True
End With
ActiveDocument.PrintOut
End Sub
--
Regards,
Jay Freedman
Microsoft Word MVP FAQ: http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the newsgroup so all may benefit.
date: Thu, 14 Aug 2008 22:10:57 -0400
author: Jay Freedman
|
|