Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 07-15-2020, 07:44 AM
hookeymookey hookeymookey is offline Close Selected Comment Windows 10 Close Selected Comment Office 2013
Novice
Close Selected Comment
 
Join Date: Jul 2020
Posts: 2
hookeymookey is on a distinguished road
Question Close Selected Comment

I've got an end user on Office 2013, that can't right-click, wanting to be able to 'Close' comments.

There is a VB string to close specific comments, but that doesn't do any good on a document that has more than 1 comment. So I see where the problem is, but I'm not sure how to (if it's even possible) to use 'Selection' to close a highlighted comment.



What I have setup below closes the first comment.

Code:
Sub Name()
With ActiveDocument.Comments(1)
.Done = True
End With
End Sub
Reply With Quote
  #2  
Old 07-15-2020, 11:36 AM
eduzs eduzs is offline Close Selected Comment Windows 10 Close Selected Comment Office 2019
Expert
 
Join Date: May 2017
Posts: 262
eduzs is on a distinguished road
Default

Try

Code:
Selection.Comments(1).Done = True
Selection should have only 1 comment to this work as expected.
__________________
Backup your original file before doing any modification.
Reply With Quote
  #3  
Old 07-15-2020, 12:07 PM
hookeymookey hookeymookey is offline Close Selected Comment Windows 10 Close Selected Comment Office 2013
Novice
Close Selected Comment
 
Join Date: Jul 2020
Posts: 2
hookeymookey is on a distinguished road
Default

That worked perfectly.

I had tried something similar earlier ( Selection.Comment.Done = True ) but that didn't work so I thought I was on the wrong trail.

Thank you so much!
Reply With Quote
Reply

Tags
comment box, comments



Similar Threads
Thread Thread Starter Forum Replies Last Post
Macro - Copying and Pasting selected slides (based on selected keywords/criteria) Hi erickhawe PowerPoint 0 08-16-2019 09:00 PM
Powerpoint-2019 Text in selected theme remains in All Caps even when small caps option is selected Tanasha4 PowerPoint 2 04-06-2019 07:53 PM
numbered list: bold when selected and fade when selected following number village PowerPoint 0 11-08-2017 10:43 AM
Close Selected Comment A nifty tool to jump from table to table, comment to comment Bengt Word 3 05-13-2015 01:53 PM
Close Selected Comment How to insert a (balloon) comment and how to disable comment feature in Word2007? pstein Word 2 03-31-2012 05:31 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 10:49 PM.


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