Search TeachExcel.com
TeachExcel.com
TE
Teach Excel MS Office Tutorials Excel Consulting Services Excel Forum
Excel Video Tutorials Excel Tips Free Excel Macros Excel Help Resources Contact TeachExcel
Video Tutorials
  • Free Macros
  • Excel Help Directory
  • Excel 2007 Resources
  • Keyboard Shortcuts
  • Excel Forum
  • Contact/About

Macros
Excel Tutorials For Macros

Hide Comments in Excel Partially - Comment Indicator Shows and Will Display on Hover


Bookmark and Share

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


Bookmark and Share


How to Install the Macro
  1. Select and copy the text from within the grey box above.

  2. Open the Microsoft Excel file in which you would like the Macro to function.

  3. 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

  4. 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.

  5. If the Macro goes in a Module, Click Here, otherwise continue to Step 8.

    1. Go to the menu at the top of the window and click Insert > Module
    2. 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.
    3. Go to Step 8.

  6. If the Macro goes in the Workbook or ThisWorkbook, Click Here, otherwise continue to Step 8.

    1. 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.
    2. Then, at the bottom of the list that appears, double-click the ThisWorkbook text.
    3. 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.
    4. Go to Step 8.

  7. If the Macro goes in the Worksheet Code, Click Here, otherwise continue to Step 8.

    1. 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.
    2. 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.
    3. 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.
    4. 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.
    5. Go to Step 8.

  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.

  9. You are now ready to run the macro.



Similar Helpful Excel Resources

Comment Indicator In Excel 07 - Excel

View Content
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

When I Hover Over A Comment It Won't Show - Excel

View Content
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?

Comment Not Displaying On Hover - Excel

View Content
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

Make A Comment Partially Bold - Excel

View Content
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




Hover On Chart To Show Comments - Excel

View Content
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

Checkbox Comments On Userform - Mouse Hover Over - Excel

View Content
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

Comment Indicator - Excel

View Content
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

Comment Indicator... - Excel

View Content
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

Print Comment Indicator - Excel

View Content
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 One Missing Comment Indicator Amongst Several. How Can I C. - Excel

View Content
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?


Random Tutorials
Remove #N/A Error Result from Empty VLOOKUP() Formulas
(Intermediate)
Lookups With MATCH() and INDEX() Functions
(Intermediate)
Introduction to Making Formulas in Excel
(Easy)
AND(), OR(), and IF() Statements/Formulas
(Intermediate)
Absolute and Relative Cell References
   - & INDIRECT() Function Introduction

(Easy)
Assign a Macro to a Button and Toolbar
(Intermediate)
Submit Inquiry Here
  • Prices From $10
Name:*
E-mail:*
Request:*
The macro(s) on this page will be sent with the request.
Contact | Privacy Policy | Disclaimer
Copyright© 2012 TeachExcel.com