-
Feb 6th, 2006, 05:02 AM
#1
[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 !!
-
Feb 6th, 2006, 12:40 PM
#2
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 Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API 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
-
Feb 7th, 2006, 08:18 AM
#3
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:
Application.PrintOut FileName:="", Range:=wdPrintAllDocument, Item:= _
wdPrintDocumentWithMarkup, Copies:=1, Pages:="", PageType:= _
wdPrintAllPages, ManualDuplexPrint:=False, Collate:=True, Background:= _
True, PrintToFile:=False, PrintZoomColumn:=0, PrintZoomRow:=0, _
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|