Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default How can I loop to find the grouped shapes count

I am trying to figure out a way of counting the number of grouped
shapes on a worksheet but I can't seem to capture the information. I
thought I could use something like ...

PictCount = ActiveSheet.GroupShapes.Count

but I am having no luck.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27
Default How can I loop to find the grouped shapes count

This will count the groups of shapes.

Sub Counter()
Dim i As Integer
i = 0
Dim shp As Shape
For Each shp In ActiveSheet.Shapes
If shp.Type = msoGroup Then
i = i + 1
End If
Next
MsgBox i
End Sub

That was fun figuring out. Heh

HTH.

-Brad


-----Original Message-----
I am trying to figure out a way of counting the number of

grouped
shapes on a worksheet but I can't seem to capture the

information. I
thought I could use something like ...

PictCount = ActiveSheet.GroupShapes.Count

but I am having no luck.
.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default How can I loop to find the grouped shapes count

Brad:

Thank you very much for the help. So I assume it's not
possible to do something like activesheet.pictures.count
for grouped shapes.

David
-----Original Message-----
This will count the groups of shapes.

Sub Counter()
Dim i As Integer
i = 0
Dim shp As Shape
For Each shp In ActiveSheet.Shapes
If shp.Type = msoGroup Then
i = i + 1
End If
Next
MsgBox i
End Sub

That was fun figuring out. Heh

HTH.

-Brad


-----Original Message-----
I am trying to figure out a way of counting the number

of
grouped
shapes on a worksheet but I can't seem to capture the

information. I
thought I could use something like ...

PictCount = ActiveSheet.GroupShapes.Count

but I am having no luck.
.

.

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27
Default How can I loop to find the grouped shapes count

There might be - but I couldn't find it.

-----Original Message-----
Brad:

Thank you very much for the help. So I assume it's not
possible to do something like activesheet.pictures.count
for grouped shapes.

David
-----Original Message-----
This will count the groups of shapes.

Sub Counter()
Dim i As Integer
i = 0
Dim shp As Shape
For Each shp In ActiveSheet.Shapes
If shp.Type = msoGroup Then
i = i + 1
End If
Next
MsgBox i
End Sub

That was fun figuring out. Heh

HTH.

-Brad


-----Original Message-----
I am trying to figure out a way of counting the number

of
grouped
shapes on a worksheet but I can't seem to capture the

information. I
thought I could use something like ...

PictCount = ActiveSheet.GroupShapes.Count

but I am having no luck.
.

.

.

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
In Excel how do I find unformatted shapes that are invisible? anmaka57 Excel Discussion (Misc queries) 1 April 14th 10 02:11 PM
Find loop doesn't loop JSnow Excel Discussion (Misc queries) 2 June 24th 09 08:28 PM
find value in A, grouped to B Bambers Excel Worksheet Functions 1 February 21st 08 12:28 AM
Find excisting values, make them grouped under the new value FrodeOlsen Excel Discussion (Misc queries) 0 April 18th 07 08:50 PM
PROB: Grouping Shapes With An Array Loop Boicie Excel Programming 2 January 14th 04 08:21 PM


All times are GMT +1. The time now is 04:24 PM.

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"