+ Reply to Thread
Results 1 to 4 of 4

Control Tip for Shape in worksheet

  1. #1
    Registered User
    Join Date
    07-13-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    26

    Control Tip for Shape in worksheet

    Thanks in advance,

    Is there any way to place a Control Tip for a shape on a excel worksheet?

    Thanks again

    This is a cross post. Link to original post

  2. #2
    Forum Expert
    Join Date
    01-23-2013
    Location
    USA
    MS-Off Ver
    Microsoft 365 aka Office 365
    Posts
    3,863

    Re: Control Tip for Shape in worksheet

    Hi,

    Try the following. You have to know the name of your SHAPE, and the name should be UNIQUE. Change the name of 'Rectangle 4' to the name of your Shape.

    Please Login or Register  to view this content.
    Lewis

  3. #3
    Registered User
    Join Date
    07-13-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    26

    Re: Control Tip for Shape in worksheet

    Thanks LJMetzger ,
    Your code is working perfectly, but I am facing a problem. The shape is to run a macro(which is assigned to it ) while using your code it could not be able to run the nacro. Can you suggest a workaround.

    Thanks again
    Bhalo Theko

  4. #4
    Forum Expert
    Join Date
    01-23-2013
    Location
    USA
    MS-Off Ver
    Microsoft 365 aka Office 365
    Posts
    3,863

    Re: Control Tip for Shape in worksheet

    Hi,

    I apologize. I almost forgot you.

    There is a workaround, but it is not pretty. It seems that the hyperlink (that creates the ControlTip text) takes priority over the macro assigned to the Shape 'OnAction' property. This means the macro will never run.

    The workaround is as follows:
    1. Add a 'SubAddress' to the Hyperlink that points to any empty cell. There are probably plenty of empty cells underneath your shape.
    2. When the shape is 'Clicked' the hyperlink causes the 'SubAddress' cell to become the 'Active Cell'.
    3. Add a Worksheet_SelectionChange() Event in the Sheet Module. This gets activated each time the 'Active Cell' changes. The the MACRO call is in the Worksheet_SelectionChange() code, and not assigned directly to the shape.

    See the attached file that contains a working Example. Code follows here:

    Lewis

    In the Sheet Module 'Sheet1':
    Please Login or Register  to view this content.
    In ordinary code Module 'ModShapeControlTipText':
    Please Login or Register  to view this content.
    Last edited by LJMetzger; 07-19-2014 at 10:16 AM. Reason: Added attachment

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Code to click a shape which is a control button
    By Alexander_Golinsky in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-04-2014, 12:30 PM
  2. [SOLVED] Use a button to control a macro that inserts an image into a shape or resets the shape
    By nwb in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-13-2013, 04:41 PM
  3. Shape control
    By Scott449 in forum Excel General
    Replies: 1
    Last Post: 04-06-2012, 02:12 PM
  4. ActiveX Control Sliders Changing Shape
    By MrBill in forum Excel General
    Replies: 2
    Last Post: 10-12-2011, 06:59 PM
  5. [SOLVED] how to control the size of a comment shape
    By EXCEL NEWS in forum Excel General
    Replies: 1
    Last Post: 05-11-2005, 08:06 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1