![]() |
|
|
|
#1
|
|||
|
|||
|
Just for the record here's how to do it with an array.
Code:
Sub Group_Pic2() Dim osld As Slide Dim oshp As Shape Dim x As Integer 'using a dynamic array Dim myray() As String Set osld = ActivePresentation.Slides(1) ReDim myray(1 To 1) For Each oshp In osld.Shapes If oshp.Type = msoPicture Then x = x + 1 myray(x) = oshp.Name ReDim Preserve myray(1 To UBound(myray) + 1) End If Next oshp 'strip the empty top value ReDim Preserve myray(1 To UBound(myray) - 1) If UBound(myray) > 1 Then _ osld.Shapes.Range(myray()).Group End Sub |
|
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Powerpoint automatically changing picture size when adding a picture (2010) | One_Life | PowerPoint | 7 | 01-20-2012 06:57 AM |
"format picture" - arrows show as no line atop picture
|
marbeth | Word | 3 | 07-08-2011 02:16 PM |
Code to export value from ComboBox
|
ilkks | Word VBA | 7 | 05-25-2011 04:06 AM |
| VBA code to export individual task lists to Excel | OTPM | Excel Programming | 0 | 05-24-2011 12:23 PM |
| How To Export A Picture From Word? | abrogard | Drawing and Graphics | 0 | 08-10-2009 06:27 PM |