Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel,microsoft.public.excel.programming,microsoft.public.office.developer.automation,microsoft.public.office.developer.vba
external usenet poster
 
Posts: 169
Default Control Tip or MouseOver label on Excel shapes

I'm using Access VBA to build an Excel Workbook which visually depicts a
bunch of project timelines.

I am creating lines which depict the duration of the project, along with
boxes and several other shapes which depict key events along the timelines.
I would like to add a control tip text or something like that for each of
these shapes, so that when a user hovers their mouse over the shape, it can
display additional information.

How would I do this using VBA?

Dale Fye


  #2   Report Post  
Posted to microsoft.public.excel,microsoft.public.excel.programming,microsoft.public.office.developer.automation,microsoft.public.office.developer.vba
external usenet poster
 
Posts: 5,600
Default Control Tip or MouseOver label on Excel shapes

Shapes do not support tooltips, however you could add a dummy hyperlink with
a tooltip, eg

' add say a rectangle to the sheet
Sub Test()
Dim shp As Shape

Set shp = ActiveSheet.Shapes(1)

ActiveSheet.Hyperlinks.Add shp, "", "", _
ScreenTip:="Hello from " & shp.Name

End Sub

As written, the Address and SubAddress arguments are empty, though you could
of course include a real link.

Regards,
Peter T


"Dale Fye" wrote in message
...
I'm using Access VBA to build an Excel Workbook which visually depicts a
bunch of project timelines.

I am creating lines which depict the duration of the project, along with
boxes and several other shapes which depict key events along the
timelines. I would like to add a control tip text or something like that
for each of these shapes, so that when a user hovers their mouse over the
shape, it can display additional information.

How would I do this using VBA?

Dale Fye



  #3   Report Post  
Posted to microsoft.public.excel,microsoft.public.excel.programming,microsoft.public.office.developer.automation,microsoft.public.office.developer.vba
external usenet poster
 
Posts: 169
Default Control Tip or MouseOver label on Excel shapes

Thanks, Peter.

Worked like a charm.

Dale

"Peter T" <peter_t@discussions wrote in message
...
Shapes do not support tooltips, however you could add a dummy hyperlink
with a tooltip, eg

' add say a rectangle to the sheet
Sub Test()
Dim shp As Shape

Set shp = ActiveSheet.Shapes(1)

ActiveSheet.Hyperlinks.Add shp, "", "", _
ScreenTip:="Hello from " & shp.Name

End Sub

As written, the Address and SubAddress arguments are empty, though you
could of course include a real link.

Regards,
Peter T


"Dale Fye" wrote in message
...
I'm using Access VBA to build an Excel Workbook which visually depicts a
bunch of project timelines.

I am creating lines which depict the duration of the project, along with
boxes and several other shapes which depict key events along the
timelines. I would like to add a control tip text or something like that
for each of these shapes, so that when a user hovers their mouse over the
shape, it can display additional information.

How would I do this using VBA?

Dale Fye





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
Label Control Murat[_3_] Excel Programming 1 July 18th 09 12:41 PM
Excel 2007 VBA Label Control Ron Keno Excel Programming 0 April 11th 09 04:19 PM
Caption control on shapes RobN[_2_] Excel Discussion (Misc queries) 4 April 12th 08 01:47 AM
Programatically control a shapes TextBox Francis Brown[_2_] Excel Programming 2 September 26th 05 06:19 PM
Tooltip for mouseover of Image OLEObject (from Control Toolbar) Matt Jensen Excel Programming 2 January 8th 05 01:55 PM


All times are GMT +1. The time now is 11:32 PM.

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"