Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / August 2006

Tip: Looking for answers? Try searching our database.

Always set to print layout and markup off

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
quartz - 21 Aug 2006 21:32 GMT
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.
Jean-Guy Marcil - 21 Aug 2006 22:19 GMT
quartz was telling us:
quartz nous racontait que :

> I am using Office 2003 on Windows XP.
>
[quoted text clipped - 12 lines]
> document to "Print Layout" view without "Markup"? Thanks much in
> advance for your assistance.

Try:

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

Signature

Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
jmarcilREMOVE@CAPSsympatico.caTHISTOO
Word MVP site: http://www.word.mvps.org

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.