![]() |
#1
|
||||
|
||||
![]()
Hey Everyone,
Quick question... if I search for an object and find it, is there a way to tell if it's contained in a group, and if it is part of a group, select the group that it is in... Thanks, B |
#2
|
||||
|
||||
![]()
There are several ways to do this, here is one example using ParentGroup.
Code:
Sub GroupTest() Dim s As Shape Set s = ActivePage.Shapes.FindShape(Name:="MyShape") If Not s.ParentGroup Is Nothing Then MsgBox "I am in a group" Else MsgBox "I am not in a group" End If End Sub |
#3
|
||||
|
||||
![]()
hahaha Parentgroup... I knew it'd be something quick and easy!
Thank you sir! |
#4
|
|||
|
|||
![]() Quote:
but if you never heared of Paris you aint going to guess France's capital |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
this is the first part of my problem. | wellboy | SecuriDesign | 1 | 24-04-2012 15:10 |
How to identify if the active selection is group or not | aakkaarr | CorelDRAW/Corel DESIGNER VBA | 3 | 15-05-2010 16:25 |
Changing selection when two-shape group loses one shape | Joe | CorelDRAW/Corel DESIGNER VBA | 1 | 19-02-2009 03:50 |
Find Group ungroup it then process and again group | derasje | Macros/Add-ons | 2 | 19-11-2008 05:04 |
How selected a part of text | TheFez | CorelDRAW/Corel DESIGNER VBA | 2 | 22-05-2008 08:07 |