Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Help displayed while hovering over a button

Hi,

I need to have help display in my spreadsheet while the user is
hovering over a custom button. Much like a cell comment but on buttons,
any ideas?

Thanks
Phil

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default Help displayed while hovering over a button

If on a userform, use the ControlTipText. If on a worksheet:

Put an image control (or another control that you can make to appear
invisible) on the worksheet just slightly larger than the commandbutton. Put
the commandbutton centered on the image control. Put your message in a label
control and make the label control visible = false. Then utilize the
mousemove event of the image control to hide the label and the mousemove
control of the button to make it visible.

Private Sub CommandButton1_MouseMove(ByVal Button _
As Integer, ByVal Shift As Integer, _
ByVal X As Single, ByVal Y As Single)
Label1.Visible = True
End Sub


Private Sub Image1_MouseMove(ByVal Button _
As Integer, ByVal Shift As Integer, _
ByVal X As Single, ByVal Y As Single)
Label1.Visible = False
End Sub

--
Regards,
Tom Ogilvy


"PhilM" wrote:

Hi,

I need to have help display in my spreadsheet while the user is
hovering over a custom button. Much like a cell comment but on buttons,
any ideas?

Thanks
Phil


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default Help displayed while hovering over a button

Spot on Tom, many thanks

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Change Ribbon Tabs by hovering AmidaTong Excel Discussion (Misc queries) 4 August 1st 06 10:58 PM
Help displayed while hovering over a button PhilM Excel Worksheet Functions 1 May 30th 06 07:33 PM
Help displayed while hovering over a button PhilM Excel Discussion (Misc queries) 1 May 30th 06 01:36 PM
Hovering over variable no longer shows value [email protected] Excel Programming 0 May 19th 06 09:27 PM
How do I get a list button to be displayed? Phil Excel Discussion (Misc queries) 3 September 8th 05 06:58 PM


All times are GMT +1. The time now is 03:13 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"