Always set to print layout and markup off

Q

quartz

I am using Office 2003 on Windows XP.

I recorded code to turn off "Markup View" and it returned the following:

WordBasic.ViewChanges

I highlighted "ViewChanges" and help said: Keyword not found

I need a simple line of code that ALWAYS turns "Markup View" off (i.e.
sometimes it may be on, sometimes off - the code above is a toggle, so it
doesn't work for me).

Can someone please supply me with a function that will set the current
document to "Print Layout" view without "Markup"? Thanks much in advance for
your assistance.
 
J

Jean-Guy Marcil

quartz was telling us:
quartz nous racontait que :
I am using Office 2003 on Windows XP.

I recorded code to turn off "Markup View" and it returned the
following:

WordBasic.ViewChanges

I highlighted "ViewChanges" and help said: Keyword not found

I need a simple line of code that ALWAYS turns "Markup View" off (i.e.
sometimes it may be on, sometimes off - the code above is a toggle,
so it doesn't work for me).

Can someone please supply me with a function that will set the current
document to "Print Layout" view without "Markup"? Thanks much in
advance for your assistance.

Try:

With ActiveWindow.View
.Type = wdPrintView
.ShowRevisionsAndComments = False
End With

--
Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
[email protected]
Word MVP site: http://www.word.mvps.org
 
Top