![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Board Regular
Join Date: Feb 2002
Location: Adelaide, Australia
Posts: 182
|
Can someone tell me how to show comments on a particular cell when it is active only.
Thnx Stuart |
|
|
|
|
|
#2 |
|
MrExcel MVP
Join Date: Feb 2002
Location: San Francisco, California USA
Posts: 10,388
|
Try something simple like this in your sheet module, using a message box as the medium.
Private Sub Worksheet_SelectionChange(ByVal Target As Range) Dim c As Comment Set c = Target.Comment On Error Resume Next If Not c Is Nothing Then MsgBox c.Text, , "The comment in this cell is..." End If End Sub |
|
|
|
|
|
#3 |
|
Banned
Join Date: Feb 2002
Posts: 1,582
|
Another way
Private Sub Worksheet_SelectionChange(ByVal Target As Range) Application.DisplayCommentIndicator = xlCommentIndicatorOnly On Error Resume Next ActiveCell.Comment.Visible = True End Sub |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|