• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

How to define shape in excel VBA

ThrottleWorks

Excel Ninja
I want to define a shape in excel vba.

I have a left arrow shape, I have named it as MyShp in the namebox (not in VB).


I want to define this shape in my module, can anyone help me in this please.
 
This should get you started.

[pre]
Code:
Sub AccessShape()
'Defined variable
Dim ThatShape As Shape

'Assign variable
Set ThatShape = ActiveSheet.Shapes("MyShp")

'Do awesome stuff
ThatShape.Select

End Sub
[/pre]
 
Back
Top