OzGrid

How to disable edit/delete comments

< Back to Search results

 Category: [Excel]  Demo Available 

How to disable edit/delete comments

 

Requirement:

 

I am in the process of building a calendar and one of the needs is to be able to disable the "edit comment" and "delete comment" function. Is there a way to do that? I've been looking all over the net to find a way, and I could find is this:

 

Solution:

 

Code:
CommandBars("Cell").Controls("Edit Comment").Enabled = False
CommandBars("Cell").Controls("Delete Comment").Enabled = False

 

Obtained from the OzGrid Help Forum.

Solution provided by Yanick.

 

See also: Index to Excel VBA Code and Index to Excel Freebies and Lesson 1 - Excel Fundamentals and Index to how to… providing a range of solutions and Index to new resources and reference sheets

 

See also:

 

How to create, apply or delete a custom view
How to delete row if Date/Time between 05:00 - 20:00
How to delete last row
How to use looping to delete cells of similar value

 

Click here to visit our Free 24/7 Excel/VBA Help Forum where there are thousands of posts you can get information from, or you can join the Forum and post your own questions.


Gallery



stars (0 Reviews)