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
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
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.
LewisPlease Login or Register to view this content.
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
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':
In ordinary code Module 'ModShapeControlTipText':Please Login or Register to view this content.
Please Login or Register to view this content.
Last edited by LJMetzger; 07-19-2014 at 10:16 AM. Reason: Added attachment
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks