How do I make custom hover labels? Excel

Jax-El picture Jax-El · Dec 5, 2013 · Viewed 8.8k times · Source

Is there a way to have a hover box display something other than "Series "POSITION" Point "2/24/2012" Data Label"? I would like to make a custom hover label. I know there are similar posts, but I am looking for a simpler solution. The related posts I felt were trying to do something much more difficult than mine. I simply want data on a chart from columns A and B, but want to display information from column C when hovered over a data label.

I have tried:

Private Sub Label1_MouseMove(ByVal Button As Integer, ByVal Shift As Integer, ByVal X As Single, ByVal Y As Single)
    If X > 10 And X < Label1.Width - 10 And Y > 10 And Y < Label1.Height - 10 Then
        ActiveSheet.Range("C21").Visible = True
    Else
        ActiveSheet.Range("C21").Visible = False
End If
End Sub

But this hasn't worked yet. The original poster said to mess with the 10 value, but I haven't seen any improvement. Also, how do I know which label is "Label1."?

Thanks! Jaxon

Answer