Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / July 2007

Tip: Looking for answers? Try searching our database.

how can one tell if there are any grouped shapes on a page?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Slowconn - 24 Jul 2007 23:22 GMT
How can one tell if there are any grouped shapes on a page
(or, in PPT, on a slide)?
Slowconn - 24 Jul 2007 23:44 GMT
Forgot to add: working in Office 2003 (both in Word and in PPT)

> How can one tell if there are any grouped shapes on a page
> (or, in PPT, on a slide)?
muffet - 25 Jul 2007 01:02 GMT
Hi Slowconn,

Click on to the shapes, and if the shape dots have a cross in the middle;
they are grouped.

Same for PPT.
Signature

 muffet

> Forgot to add: working in Office 2003 (both in Word and in PPT)
>
> > How can one tell if there are any grouped shapes on a page
> > (or, in PPT, on a slide)?
Helmut Weber - 25 Jul 2007 16:43 GMT
Hi Slowconn,

Sub TestIIIa()
Dim oShp As Shape
Dim bGrp As Boolean
On Error Resume Next
With Selection.Bookmarks("\page").Range
  If .ShapeRange.Count > 0 Then
     For Each oShp In .ShapeRange
        If oShp.GroupItems.Count > 1 Then
           bGrp = True
        End If
     Next
  End If
End With
If bGrp Then msgbox "Grouped shapes on this page"
End Sub

I couldn't find a way without error handling.
Shape and shaperange is a mystery to me.

If it helps, its alright,
otherwise, disregard.

Signature

Greetings from Bavaria, Germany

Helmut Weber, MVP WordVBA

Win XP, Office 2003
"red.sys" & Chr$(64) & "t-online.de"

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.