View Single Post
 
Old 05-07-2023, 04:49 PM
Guessed's Avatar
Guessed Guessed is offline Windows 10 Office 2016
Expert
 
Join Date: Mar 2010
Location: Canberra/Melbourne Australia
Posts: 4,176
Guessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant future
Default

I recorded a few settings and this appears to give a result that only shows the sidebars
Code:
Sub ExportPdfSidebars()
  With Options
    .InsertedTextMark = wdInsertedTextMarkNone
    .InsertedTextColor = wdBlue
    .DeletedTextMark = wdDeletedTextMarkHidden
    .DeletedTextColor = wdPink
    .RevisedPropertiesMark = wdRevisedPropertiesMarkNone
    .RevisedPropertiesColor = wdByAuthor
    .RevisedLinesMark = wdRevisedLinesMarkOutsideBorder
    .CommentsColor = wdByAuthor
    .RevisionsBalloonPrintOrientation = wdBalloonPrintOrientationPreserve
    .MoveFromTextMark = wdMoveFromTextMarkDoubleStrikeThrough
    .MoveFromTextColor = wdGreen
    .MoveToTextMark = wdMoveToTextMarkDoubleUnderline
    .MoveToTextColor = wdGreen
    .InsertedCellColor = wdCellColorLightBlue
    .MergedCellColor = wdCellColorLightYellow
    .DeletedCellColor = wdCellColorPink
    .SplitCellColor = wdCellColorLightOrange
  End With

  ActiveWindow.View.RevisionsMode = wdInLineRevisions

  ActiveDocument.ExportAsFixedFormat OutputFileName:="C:\TestFolder\SavedVersion.pdf", _
    ExportFormat:=wdExportFormatPDF, OpenAfterExport:=True, OptimizeFor:= _
    wdExportOptimizeForPrint, Range:=wdExportAllDocument, _
    Item:=wdExportDocumentWithMarkup, IncludeDocProps:=False, KeepIRM:=True, _
    CreateBookmarks:=wdExportCreateNoBookmarks, DocStructureTags:=True, _
    BitmapMissingFonts:=True, UseISO19005_1:=False
  
End Sub
__________________
Andrew Lockton
Chrysalis Design, Melbourne Australia
Reply With Quote