Show a comment
How to show a comment using the Excel, VBA and Shortcut methods
Right-click on a cell > Click Show/Hide Comments
1. Right-click on the cell that has the comment that you want to show. 2. Click Show/Hide Comments. Note: in this example we are showing a comment in cell B2. |
Select the cell > Review tab > Comments group > Click Show/Hide Comment
1. Select the cell that has the comment that you want to show. Note: in this example we are showing a comment in cell B2. |
2. Select the Review. |
3. Click Show/Hide Comment in the Comments group. |
Sub Show_Comment()
'show a comment in cell ("B2")
Worksheets("Analysis").Range("B2").Comment.Visible = True
End Sub
OBJECTS
Worksheets: The Worksheets object represents all of the worksheets in a workbook, excluding chart sheets.
Range: The Range object is a representation of a single cell or a range of cells in a worksheet.
Worksheets: The Worksheets object represents all of the worksheets in a workbook, excluding chart sheets.
Range: The Range object is a representation of a single cell or a range of cells in a worksheet.
PREREQUISITES
Worksheet Name: Have a worksheet named Analysis.
Worksheet Name: Have a worksheet named Analysis.
ADJUSTABLE PARAMETERS
Cell in which to show a comment: Select the cell in which to show a comment by changing the cell reference ("B2") in the VBA code to any cell in the worksheet that has a comment.
Worksheet Selection: Select the worksheet in which you want show a comment by changing the Analysis worksheet name, in the VBA code, to any worksheet in the workbook.
EXPLANATION
This tutorial explains and provides step by step instructions on how to show a comment using the Excel, VBA and Shortcut methods.
This tutorial explains and provides step by step instructions on how to show a comment using the Excel, VBA and Shortcut methods.
Excel Methods: Using Excel you can show a comment in the selected cell with the ribbon option or cell option.
VBA Methods: Using VBA you can show a comment in a cell that has been specified in the VBA code.