what the best way to create a hover over message?

tonywatsonhelp

Well-known Member
Joined
Feb 24, 2014
Messages
3,194
Office Version
  1. 365
  2. 2019
  3. 2016
Platform
  1. Windows
Hi everyone,
I'm a bit puzzled and need some advice and help.

I have a calendar in excel with dates along the top and events down column A

Now when we have something happening the cell turn red so for example if we have a meeting on 20/04/2019 with Wembley stadium it shows in that cell.
however to get the detail we currently click on the cell and a form pops up with all the data.
I'd like to create a way to get just a title when I hover over it.

I've found I can do this with Comment labels but have not used excel to create them before.
so here's what I was thinking as first experiment.
lets say I have the data I want in each cell,
lets make the range D14:BY40
so can I use a macro that when run will go though the range and if a cell has a value add a comment with that value in it??
or is there a better way?

Thanks

Tony
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
Something like this?

Code:
Sub AddComments()
Dim c As Range

    For Each c In Range("D14:BY40")
        c.ClearComments
        If c <> "" Then
            c.AddComment
            c.Comment.Text Text:=c.Value
        End If
    Next c
    
End Sub
 
Upvote 0

Forum statistics

Threads
1,214,581
Messages
6,120,368
Members
448,957
Latest member
BatCoder

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top