Macro Shape to Call another Macro Shapes

andersen_yunan

New Member
Joined
Feb 7, 2018
Messages
36
Hi, is there a way when I clicked a shape containing macro, it could call 1 or more shapes that are also macro assigned?

Thankyouu
 

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
Call the other macro(s) from the macro being run.
 
Upvote 0
Run numerous script from one shape using something like this:



Call One
Call Two
Call Three
Call Four

Etc.

The call function runs the script. Now obviously if your script is name Me you would have Call Me

This should work OK but it may not work properly depending on how your scripts are written.
 
Upvote 0
Hi, thank you for the reply

I'm quite new to macro and still learning. So, I'm trying to make one macro assigned to shape to be able to call a set of shape that have different macros assigned. Will the macro able to hide and show this set of shape upon when I clicked the first shape by using call?
 
Upvote 0
Not sure I understand your question.

Did you try the script I provided?

Did it work?

So are now saying you want the shape which runs the macro to hide itself after running the script?
 
Upvote 0
Hi, sorry it's confusing

So each shapes has their own set of sub-shapes. Initally, let's say there are 3 shapes with each has its own 2 sub-shapes hidden. What i have in mind is that each time I click on one shapes, their set of sub-shapes would appear and if I clicked on other shapes, the previous set of shapes would hide themselves and let the other set of shapes appear.

I try your script but it didn't run because I didn't know script for hide and show for the sub-shapes
 
Upvote 0
Well I just thought you wanted to run several different scripts from one shape.

Your subject title says:
Macro Shape to Call another Macro Shapes

My script only called your scripts

To do what you want would require a lot more information.
Like on what sheet are the shapes what are the names of the shapes and maybe more.
 
Upvote 0
To hide a shape :
ActiveSheet.Shapes.Range("Button 3").Visible = False

To show a shape :
ActiveSheet.Shapes.Range("Button 3").Visible = True
 
Upvote 0
Hi, footoo

Appreciate for the help. As for the script is it possible to apply it automatically hidden it if other button was clicked?
 
Upvote 0

Forum statistics

Threads
1,223,630
Messages
6,173,454
Members
452,514
Latest member
cjkelly15

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top