Results 1 to 3 of 3

Thread: [RESOLVED] WORD VBA - Printing Track Changes !

  1. #1

    Thread Starter
    Superbly Moderated NeedSomeAnswers's Avatar
    Join Date
    Jun 2002
    Location
    Manchester uk
    Posts
    2,660

    Resolved [RESOLVED] WORD VBA - Printing Track Changes !

    Hello,

    Does anyone know how i can print The Redline Track Changes in a Word Document through VBA

    Can it be done using the 'Application.PrintOut' method ??

    It doesn't seem to print out the Track changes if you just printout, it prints the full accepted version !!

  2. #2
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,710

    Re: WORD VBA - Printing Track Changes !

    You will have to go into the Options and check the box to show revisions or such. Then the .PrintOut method. If it prnts as you want then record a macro doing just that and see the module vba code generated to see how to programmatically turn on show changes.
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  3. #3

    Thread Starter
    Superbly Moderated NeedSomeAnswers's Avatar
    Join Date
    Jun 2002
    Location
    Manchester uk
    Posts
    2,660

    Re: WORD VBA - Printing Track Changes !

    Cheers RobDog,

    I think i must have been a bit brain dead the day i posted this.

    Didn't even cross my mind to record, and that is the way i have found out how to do so many things with VBA.

    Anyway just in case anyone is interested yes you can print Track Changes through the Application.Printout method using the following code

    VB Code:
    1. Application.PrintOut FileName:="", Range:=wdPrintAllDocument, Item:= _
    2.         wdPrintDocumentWithMarkup, Copies:=1, Pages:="", PageType:= _
    3.         wdPrintAllPages, ManualDuplexPrint:=False, Collate:=True, Background:= _
    4.         True, PrintToFile:=False, PrintZoomColumn:=0, PrintZoomRow:=0, _
    5.         PrintZoomPaperWidth:=0, PrintZoomPaperHeight:=0

    The main thing to note is the 'Item' argument by changing this you have various options for Track changes when you print including - wdPrintDocumentWithMarkup - which print's the Red Line version.

    Cheers Rich

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width