#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 110
Default Selecting shapes

I want a macro that will group every drawing object on the page (and it will
be a different number each time).

So I recorded a macro by selecting two rectangles...
ActiveSheet.Shapes.Range(Array("MyRect97", "MyRect96")).Select

Then I attempted to build the array set differently, but it didn't work
myShape = "MyRect97" & """" & "," & """" & "MyRect96"
ActiveSheet.Shapes.Range(Array(myShape)).Select

Can you tell me how I to populate the variable "myShape" correctly?
Thanks in advance.

Daniel


  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 301
Default Selecting shapes

activesheet.drawingobjects.group
or
activesheet.drawingobjects.Select

"Daniel Bonallack" wrote in
message ...
I want a macro that will group every drawing object on the page (and it
will
be a different number each time).

So I recorded a macro by selecting two rectangles...
ActiveSheet.Shapes.Range(Array("MyRect97", "MyRect96")).Select

Then I attempted to build the array set differently, but it didn't work
myShape = "MyRect97" & """" & "," & """" & "MyRect96"
ActiveSheet.Shapes.Range(Array(myShape)).Select

Can you tell me how I to populate the variable "myShape" correctly?
Thanks in advance.

Daniel




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
When drawing shapes in excel the shapes keep disappearing Tape Excel Discussion (Misc queries) 1 October 6th 06 04:23 PM
Shapes aftamath Excel Discussion (Misc queries) 2 October 26th 05 04:58 PM
Manipulating shapes thePriest Excel Discussion (Misc queries) 0 April 20th 05 06:41 PM
How can i get more 3D shapes for Auto shapes in excel? Ajey Excel Discussion (Misc queries) 0 March 3rd 05 09:53 AM
How can i get more 3D shapes for Auto shapes in excel? Ajey Excel Discussion (Misc queries) 0 March 3rd 05 09:53 AM


All times are GMT +1. The time now is 01:28 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"