Is there a way to insert a shape on the same location on many sheets and call a macros when this button is clicked? At one shot, I mean.
Is there a way to insert a shape on the same location on many sheets and call a macros when this button is clicked? At one shot, I mean.
Yes
something like this
![]()
Please Login or Register to view this content.
Last edited by humdingaling; 07-17-2017 at 03:33 AM. Reason: changed code slightly
If you are satisfied with the solution(s) provided, please mark your thread as Solved.
Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.
Thanks a ton!
One additional question. How do I position this shape correctly? Say, I want it between T3 and U4 in every sheet?
Also,if I want some Text over it, would ActiveShape.Text = "Something" work?
Also, what if I want to select a shape style?
Last edited by hegdep; 07-17-2017 at 04:12 AM.
how exactly do you want to select the shape?![]()
Please Login or Register to view this content.
here's a list of shapes you can use
https://msdn.microsoft.com/VBA/Offic...eration-office
Thanks!
I am referring to no other shape. Just applying a preset style(this is unique to each version of office, I presume)
From the macros recording I tried out to do the same msoShapeStylePreset37
Logically, this should work.![]()
Please Login or Register to view this content.
I'll try it out and let you know. Thanks a ton for your help!
yeah there is a list of presets
https://msdn.microsoft.com/en-us/lib...tyleindex.aspx
descriptions of what they are wont help you much
you are much better off just doing what you are doing, record macro to find the preset number
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks