Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 02-02-2024, 02:42 AM
uougaard uougaard is offline Looking for VBA to show tracked changes and hide comments Windows 11 Looking for VBA to show tracked changes and hide comments Office 2021
Novice
Looking for VBA to show tracked changes and hide comments
 
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
  #2  
Old 02-08-2024, 06:10 AM
macropod's Avatar
macropod macropod is offline Looking for VBA to show tracked changes and hide comments Windows 10 Looking for VBA to show tracked changes and hide comments Office 2016
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,963
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Cross-posted at: Looking for VBA to show tracked changes and hide comments in Word Document
For cross-posting etiquette, please read: A message to forum cross posters - Excelguru
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Looking for VBA to show tracked changes and hide comments Exporting Tracked Changes and Comments to Excel alzasp Word VBA 14 06-14-2022 02:13 AM
Convert specific author's name in comments and tracked changes to another name rmk911 Word VBA 2 12-09-2021 09:14 PM
Tracked changes and comments disappeared with All Markup selected sleake Word 4 06-18-2018 05:12 AM
Looking for VBA to show tracked changes and hide comments Word for Mac 2011 - Lost all tracked changes and all comments Clint57 Word 1 08-24-2017 06:56 PM
Merging certain Tracked Changes and Comments The_Chefkoch Word 0 02-01-2017 07:22 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 01:49 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft