I have an Excel sheet with four shapes and a couple of buttons to run macros. The shapes are named topCircle, leftCircle, rightCircle & midCircle.
Wanting one of the buttons to run a macro that copies the four shapes to clipboard, for pasting into other Office docs.
Have been though various MSDN articles (like https://msdn.microsoft.com/en-us/library/office/ff940375.aspx) but having trouble. Trying to imitate the example on the linked article, I wrote this:
Set myDocument = Worksheets("Overall")
myDocument.Shapes.Range(Array("leftCircle", "rightCircle", "topCircle", "midCircle")).Copy
But getting an error "Object doesn't support this property or method". Have also tried a few other things without luck. Any ideas as to how to get this to work? Cheers!
Select, if you change tomyDocument.Shapes.range(Array("leftCircle", "rightCircle", "topCircle", "midCircle")).Selectand after addSelection.Copyit will work. Let me "play" a little more to avoid this "ugly" work-around - Shai Rado