I'm referring to Musiha Mahfuza Mukta excellent article "How to Perform Drawing of Objects with VBA in Excel (2 Easy Examples)" posted 12/24/23.
Context: I've created a right triangle shape, filled it with a pattern, and named it "Mountain". I now only need to refer to it in VBA as ActiveSheet.Shapes("Mountain") followed by a dot for methods/properties.
I'm confused with some of the answers I've found.
I want to do two things with this shape in VBA using values in named cells:
1) Set it's height named Gain_M (single) and width named AB (for it's trig id, also single)
2) Move the lower left corner to cell "D11". I'll give it a name, too, eventually.
If there's more examples on sizing and positioning Excel shapes that can be squeezed in, that'd be a plus. All I need is 1 and 2.
Context: I've created a right triangle shape, filled it with a pattern, and named it "Mountain". I now only need to refer to it in VBA as ActiveSheet.Shapes("Mountain") followed by a dot for methods/properties.
I'm confused with some of the answers I've found.
I want to do two things with this shape in VBA using values in named cells:
1) Set it's height named Gain_M (single) and width named AB (for it's trig id, also single)
2) Move the lower left corner to cell "D11". I'll give it a name, too, eventually.
If there's more examples on sizing and positioning Excel shapes that can be squeezed in, that'd be a plus. All I need is 1 and 2.