PC Review


Reply
 
 
Francis Hookham
Guest
Posts: n/a
 
      30th Mar 2008
Using Basic Shapes as buttons running macros, is it possible for a
descriptive 'tip' to be programmed in which will appear when the mouse
hovers over, as is the case with toolbar buttons?

Francis Hookham


 
Reply With Quote
 
 
 
 
Gary''s Student
Guest
Posts: n/a
 
      30th Mar 2008
Do not assign the macro directly to the Shape. Instead, assign a hyperlink
to the Shape to take you to a remote location within the worksheet, say Z100.
Then create a worksheet event macro to call the desired macro whenever z100
is Selected.

The advantage to using the hyperlink is that you can assign a tooltip to the
hyperlink that will appear by mouse_over. Here is an example:

Say the macro you want to run is named dural. In worksheet code enter:

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Set t = Target
Set r = Range("Z100")
If Intersect(t, r) Is Nothing Then Exit Sub
Call dural
End Sub
--
Gary''s Student - gsnu2007g


"Francis Hookham" wrote:

> Using Basic Shapes as buttons running macros, is it possible for a
> descriptive 'tip' to be programmed in which will appear when the mouse
> hovers over, as is the case with toolbar buttons?
>
> Francis Hookham
>
>
>

 
Reply With Quote
 
JLGWhiz
Guest
Posts: n/a
 
      30th Mar 2008
Look up ControlTipsText in VBA help file. Here is some sample code from the
help file.

Private Sub UserForm_Initialize()
MultiPage1.Page1.ControlTipText = "Here in page 1"
MultiPage1.Page2.ControlTipText = "Now in page 2"

CommandButton1.ControlTipText = "And now here's"
CommandButton2.ControlTipText = "a tip from"
CommandButton3.ControlTipText = "your controls!"
End Sub


"Francis Hookham" wrote:

> Using Basic Shapes as buttons running macros, is it possible for a
> descriptive 'tip' to be programmed in which will appear when the mouse
> hovers over, as is the case with toolbar buttons?
>
> Francis Hookham
>
>
>

 
Reply With Quote
 
Francis Hookham
Guest
Posts: n/a
 
      30th Mar 2008
Thank you JLGWhiz and Gary''s Student for your wonderful prompt reply.

I'll try both

I am most grateful

Francis


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Tool tips or screen tips Andrew B Microsoft Excel Programming 0 27th Apr 2006 07:40 AM
How do I change an action button's screen tips? =?Utf-8?B?RkYgTWlrZQ==?= Microsoft Powerpoint 29 19th Apr 2006 01:36 PM
Top Tips from the Gurus!...Place your best of the best tips here! Alpha Freeware 12 30th Dec 2005 07:47 PM
Turn off Screen Tips / Tool Tips =?Utf-8?B?U3VzYW4=?= Microsoft Powerpoint 1 18th Jun 2005 04:18 AM
Tips: Fixing a weak/broken Mouse Button! Broomstick Windows XP General 0 23rd Feb 2004 11:29 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:47 PM.