Macro to view a page

  • Thread starter Thread starter BobS
  • Start date Start date
B

BobS

I use Office 2003 and have seen a macro used that allows you to click a key
and see your whole page and edit it, and then click the same key again and
the page view goes back to the view it was in before you changed to full
page view. Can anybody tell me where to find this macro and how to assign
it to a function key? Thank you very much.
Bob
 
Since posting this, I have learned how to assign a macro to a keystroke at
http://word.mvps.org/FAQs/Customization/AsgnCmdOrMacroToHotkey.htm. Thank
you mvp's.
I have also found a macro in my list which seems by its name to be for this
purpose. I have listed it below. Alas, when I run it I see no difference
on the screen. Can anyone help? Thanks.

Sub ViewPage()
'
' ViewPage Macro
' Displays the page as it will be printed and allows editing
'
If ActiveWindow.View.SplitSpecial = wdPaneNone Then
ActiveWindow.ActivePane.View.Type = wdPrintView
Else
ActiveWindow.View.Type = wdPrintView
End If

End Sub
 
Back
Top