|
Hide Comments in Excel Partially - Comment Indicator Shows and Will Display on Hover
Hide comments in Excel with this macro. Comment indicators will still appear in the cells and users will also be able to view the comments when hovering over a cell that contains a comment.
This macro serves as a way to put comments back to their default behavior in Excel and is great to use when you have a lot of comments set to permanently show within a workbook. This macro allows you to quickly reset comment display behavior throughout the entire workbook in Excel.
Where to install the macro: Module
Excel Macro to Hide Comments in Excel Partially - Comment Indicator Shows and Will Display on Hover
Sub Display_Comments_Indicator_Only()
Application.DisplayCommentIndicator = xlCommentIndicatorOnly
End Sub
How to Install the Macro
- Select and copy the text from within the grey box above.
- Open the Microsoft Excel file in which you would like the Macro to function.
- Press "Alt + F11" - This will open the Visual Basic Editor - Works for all Excel Versions.
Or For other ways to get there, Click Here.
For Excel Versions Prior to Excel 2007 Go to Tools > Macros > Visual Basic Editor
For Excel 2007 Go to Office Button > Excel Options > Popular > Click Show Developer tab in the Ribbon. Then go to the Developer tab on the ribbon menu and on the far left Click Visual Basic
- On the new window that opens up, go to the left side where the vertical pane is located. Locate your Excel file; it will be called VBAProject (YOUR FILE'S NAME HERE) and click this.
- If the Macro goes in a Module, Click Here, otherwise continue to Step 8.
- Go to the menu at the top of the window and click Insert > Module
- Another window should have opened within the Visual Basic Editor's window. Within this new window, paste the macro code. Make sure to paste the code underneath the last line of anything else that is in the window.
- Go to Step 8.
- If the Macro goes in the Workbook or ThisWorkbook, Click Here, otherwise continue to Step 8.
- Directly underneath your excel file called VBAProject(your file's name here), click the Microsoft Excel Objects folder icon to open that drop-down list.
- Then, at the bottom of the list that appears, double-click the ThisWorkbook text.
- A new window inside the Visual Basic Editor's window will appear. In this new window, paste the code for the macro. Make sure to paste this code underneath the last line of any other code which is already in the window.
- Go to Step 8.
- If the Macro goes in the Worksheet Code, Click Here, otherwise continue to Step 8.
- Directly underneath your excel file called VBAProject(your file's name here), click the Microsoft Excel Objects folder icon to open that drop-down list.
- Within the list that appears you will see every worksheet that is in that excel file. They will be listed as such: Sheet1(NAME OF SHEET HERE) and under that will be Sheet2(NAME OF SHEET HERE). Select the sheet in which you want the macro to run and double-click that sheet.
- A new window inside the Visual Basic Editor's window will appear. In this new window, paste the code for the macro. Make sure to paste this code underneath the last line of any other code which is already in the window.
- Repeat steps b and c for every sheet you want the macro to work in. Putting the macro in one sheet will not enable it for any other sheets in the workbook.
- Go to Step 8.
- Close the Microsoft Visual Basic Editor window and save the Excel file. When you close the Visual Basic Editor window, the regular Excel window will not close.
- You are now ready to run the macro.
Similar Helpful Excel Resources
Hi, how can I remove the red triangular comment indicator in Excel 07? I need to hide some formulas that have comments. I have made the font white on the formulas so they are not visible however cannot get rid of the red triangle indicator. I know there is a way to remove it in 03 however cannot find how to do it in 07.
Thanks
For some odd reason when I hover over a comment it won't show and it flickers.
I don't know what I did different.
It works fine on my old workbook.
Any ideas how this can be solved?
So far I've tried:
Deleting the comment and reapplying the comment.
Deleting the cell and copied the working cell from my old workbook
Any ideas?
Hi folks,
I'm relatively new to Excel VBA Programming (too many years in other languages ) so forgive me if there is an obvious answers - I have searched quite a bit but can't seem to find the answer.
I am developing a worksheet upon which some number crunching is performed and results are written out to various cells. If the result being put into a cell needs somebody's attention then the cell's background color is changed to orange and a Comment is attached. All of this is carried in the Worksheet_Activate method.
The cell correctly shows a red triangle in the top right hand corner BUT when I hover over the cell, the Comment is not automatically displayed as per normal behavior of Excel.
I have check my Excel options and I have the "Indicators only, and comments on hover" selected.
The Comment is displayed if I select "Show/Hide Comments" menu option. Also when I programmatically create the Comment, I set its Visible property to True then all the Comments are displayed.
Can anybody provide me with some guidance please as to what I am doing wrong.
Thanks in advance.
Regards,
Shakeel
Am I trying to use this object in the wrong fashion?
I'm trying to make a part of the comment bold, but I keep getting the "Object does not support this property or method." error.
I used to have a script for making it entirely bold, unfortunately I've lost it though.
Code:
Range("U1502").Comment.Characters(1, 14).Font.Bold = True
Hi Guys,
Can anyone tell me how to / explain how I can display comments when I hover over an area on a Stacked Bar Chart. At the moment it just says Value:2 for example.
Thanks in advance
dvent
Hello,
Can anyone advise if it is possible to show a relatively small message (say 50 to 70 characters) if a user hovers over a checkbox on a userform?
I know I could simply go with the MsgBox option if checkbox is selected but at this way the user would receive the info before selecting thereby saving a couple of clicks. Given the userform may have a few such messages it would be worthwhile finding a solution this way.
Kind regards
C
Hi all,
I was wondering if there was a way to change the comment indicator from the top right hand corner of a cell to the top left?
Regards,
Stu
Hi,
I'm using Excel 2002 and looking for a way to get rid of the red comment indicator in entirety. While I get that it's not possible there appears to be a workaround which I took off the Contextures website.
Sub RemoveIndicatorShapes ()
Dim ws As Worksheet
Dim shp As Shape
Set ws = ActiveSheet
For Each shp In ws.Shapes
If Not shp.TopLeftCell.Comment Is Nothing Then
If shp.AutoShapeType = _
msoShapeRightTriangle Then
shp.Delete
End If
End If
Next shp
End Sub
Has this worked with anyone?Where am I supposed to paste this in the active sheet code?
Cheers,
Nash
Ok silly question.
Is there a way to print the comment indicator without the comment? I don't want the comment (read: my boss doesn't) just the indicator.
Any clues would be helpful!!
Thanks
I have set my spreadsheet to display comment indicators. All but one comment
indicator is showing. The comment is visible when you move the cursor over it
as normal but i just can't see the indicator. How can i fix this?
|
|