Data validation comments...appearance

mad3

Board Regular
Joined
Sep 15, 2009
Messages
82
I'm trying to get the comments from the cells that are on another sheet to appear when my users hover over cell where drop-down list is.
Please help, Mike in Cali...
 

tonyyy

Well-known Member
Joined
Jun 24, 2015
Messages
1,647
Mike,

If you're comfortable with a vba approach you might consider the following...

Code:
Private Sub Worksheet_Change(ByVal Target As Range)
Dim cmt As Comment
Dim dvRange As Range, r As Range
Set dvRange = Sheets("Sheet2").Range("D4:D7") 'Change to your sheet name and range

If Not Intersect(Target, Range("H4")) Is Nothing Then 'Change to your Data Validation range
    For Each r In dvRange
        If Target.Value = r.Value Then
            Target.ClearComments
            Target.AddComment.Text r.Comment.Text
        End If
    Next r
End If
End Sub
The code should be pasted into the sheet module corresponding to the sheet with the drop down.

Cheers,

tonyyy
 

Forum statistics

Threads
1,082,167
Messages
5,363,528
Members
400,747
Latest member
monty_gl

Some videos you may like

This Week's Hot Topics

  • populate from drop list with multiple tables
    Hi All, i have a drop list that displays data, what i want is when i select one of those from the list to populate text from different tables on...
  • Find list of words from sheet2 in sheet1 before a comma and extract text vba
    Hi Friends, Trying to find the solution on my task. But did not find suitable one to the need. Here is my query and sample file with details...
  • Dynamic Formula entry - VBA code sought
    Hello, really hope one of you experts can help with this - i've spent hours on this and getting no-where. .I have a set of data (more rows than...
  • Listbox Header
    Have a named range called "AccidentsHeader" Within my code I have: [CODE]Private Sub CommandButton1_Click() ListBox1.RowSource =...
  • Complex Heat Map using conditional formatting
    Good day excel world. I have a concern. Below link have a list of countries that carries each country unique data. [URL...
  • Conditional formatting
    Hi good morning, hope you can help me please, I have cells P4:P54 and if this cell is equal to 1 then i want row O to say "Fully Utilised" and to...
Top