Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default Groups in Excel VBA

I have a group of shapes in Excel, all nicely labelled and what i want to be
able to do is rotate one specific shape inside that group and NOT the entire
group itself.

More-over i want to be able to copy and paste this group of shapes and be
able to dictate the rotation said shape for each group individually.

I.e. Two groups of shapes (copy and paste job) called "Group 1" and "Group
2" BOTH contain a shape called "Needle" and I wan to be able to rotate
Group1.Needle or Group2.Needle as I see fit.

Make sense?

Any ideas?


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 112
Default Groups in Excel VBA

Hi Mark,

Using Excel 2003, you can use the following code to rotate a shape that
begins with the letters "Needle". IIRC, in previous versions of Excel you
had to ungroup the group first, rotate the individual shape, then regroup the
group. Also, Excel 2003 renames the individual shapes within a group when
you make a copy of that group. That was not the case in earlier versions I
believe.

With ActiveSheet.Shapes("Group 1")
For i = 1 To .GroupItems.Count
If Mid(.GroupItems(i).Name, 1, 6) = "Needle" Then
.GroupItems(i).Rotation = 123
End If
Next i
End With



Regards,
Vic Eldridge





"MarkBradshaw" wrote:

I have a group of shapes in Excel, all nicely labelled and what i want to be
able to do is rotate one specific shape inside that group and NOT the entire
group itself.

More-over i want to be able to copy and paste this group of shapes and be
able to dictate the rotation said shape for each group individually.

I.e. Two groups of shapes (copy and paste job) called "Group 1" and "Group
2" BOTH contain a shape called "Needle" and I wan to be able to rotate
Group1.Needle or Group2.Needle as I see fit.

Make sense?

Any ideas?


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
Can Excel tell me what groups i have? mark Excel Discussion (Misc queries) 2 January 5th 09 12:35 PM
User name in excel groups yshridhar Excel Discussion (Misc queries) 3 April 23rd 08 09:25 PM
Excel - Sorting groups in groups due to subtotaling [email protected] Excel Worksheet Functions 3 April 4th 08 06:13 PM
Different MS Excel User Groups HB Excel Discussion (Misc queries) 1 July 26th 06 10:45 AM
how do i view all groups under excel in google groups JulieD Excel Discussion (Misc queries) 2 December 16th 04 04:33 PM


All times are GMT +1. The time now is 05:25 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"