ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Cell Comments (https://www.excelbanter.com/excel-programming/320977-cell-comments.html)

LDanix

Cell Comments
 
Is there a way to show a comment only when the corresponding cell is selected?

K Dales[_2_]

Cell Comments
 
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Dim C As Comment

For Each C In ActiveSheet.Comments
C.Visible = (C.Parent.Address = Target.Address)
Next C

End Sub


"LDanix" wrote:

Is there a way to show a comment only when the corresponding cell is selected?


Tom Ogilvy

Cell Comments
 
Not a comment I don't believe (I assume you are unhappy with the default
behavior), but perhaps you could use data validation. It has several
options for popping up messages.

--
Regards,
Tom Ogilvy

"LDanix" wrote in message
...
Is there a way to show a comment only when the corresponding cell is

selected?




All times are GMT +1. The time now is 07:05 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com