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
(e-mail address removed)
Word MVP site: http://www.word.mvps.org
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top