View Single Post
 
Old 02-02-2024, 02:42 AM
uougaard uougaard is offline Windows 11 Office 2021
Novice
 
Join Date: Feb 2024
Location: Copenhagen Area, Denmark
Posts: 1
uougaard is on a distinguished road
Default Looking for VBA to show tracked changes and hide comments

For many years we have had two VBA macros (called from buttons in a ribbon extension). One macro sets up the open document to show Tracked changes *and* comments, the other sets up the document to show only tracked changes but hides comments

The important lines of the macros are
ActiveWindow.View.ShowRevisionsAndComments = True;
ActiveWindow.View.ShowComments = False/True

With recent changes of the commenting features in Office/word, both macros show comments.

My analysis show that the behaviour is linked to the new "show comments" button in the comments group in the Review tab.
This "Show Comments" button has two variants: "Contextual" or "List". when "show comments - Contextual" has been selected from the ribbon my original procedures work

it also seems that just using the "show comments" button once to turn off display of comments make our original procedures work.

I can not find a VBA method to do the "Show Comments - Contextual" function (and I am not sure what function is behind the button "Show comments" - off
Reply With Quote