Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Place selected object names into array

I am trying to take the contents of a group and place them in an
array.
However to date I have not been able to either dump the array of
shapes in the group into an array, or iterate through the items in the
group putting each item into the array.

Any help would be great.

Once I have stored the contents/names of the group items in an array I
will be ungrouping them to allow me to make a change to the colour of
the font in one item and then regrouping.

Eg.

Sub reGroupobjects(itemToChange As String, colour As Integer,
selctionName as string)

Dim menuArray() As String ' This should be the Array of objects



menuArray() = 'Before ungrouping I need to get the names of the
objects into an array

ActiveSheet.Shapes(selctionName).Ungroup.Select
ActiveSheet.Shapes(itemToChange).Select
With Selection.Font
.Name = "Tahoma"
.FontStyle = "Bold"
.Size = 12
.Strikethrough = False
.Superscript = False
.Subscript = False
.OutlineFont = False
.Shadow = False
.Underline = xlUnderlineStyleNone
.ColorIndex = colour
End With
ActiveSheet.Shapes.Range(menuArray()).Select
Selection.ShapeRange.Group.Select
Selection.Name = selctionName


End Sub

Thanks in advance

Tristan
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
Place text within clipart object softball player Excel Discussion (Misc queries) 1 January 20th 09 07:37 PM
Chart wizard will not place (as object in) graph in same sheet harri Excel Worksheet Functions 0 August 10th 05 03:48 AM
Range object to Array object conversion Myrna Larson[_2_] Excel Programming 1 August 1st 03 02:27 AM
Range object to Array object conversion Alan Beban[_3_] Excel Programming 0 August 1st 03 01:24 AM
Range object to Array object conversion Tom Ogilvy Excel Programming 0 August 1st 03 12:16 AM


All times are GMT +1. The time now is 08:09 PM.

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

About Us

"It's about Microsoft Excel"