Hi

I have this:

VB Code:
  1. Private Sub Label2_MouseMove(ByVal Button As Integer, ByVal Shift As Integer, ByVal X As Single, ByVal y As Single)
  2. Call PopUpMenue(y)
  3. End Sub
  4.  
  5.  
  6. Sub PopUpMenue(y As Single)
  7. Label2.BackColor = &H8000000D
  8. Label2.ForeColor = &H8000000E
  9.  
  10. If y > Label2.Height - 1 Or y < 1 Then
  11. Label2.BackColor = &H8000000F
  12. Label2.ForeColor = &H80000012
  13. End If
  14.  
  15. End Sub


I want to apply this "function to about 10 labels..
HOw do I do that without coding each one?


I am working in excel. And i need a pop up menu.
So I am coding a frame to mimic a popup menu.

Any suggestions?

Seahag