PC Review


Reply
Thread Tools Rate Thread

Detecting shapes in groups

 
 
Raist via OfficeKB.com
Guest
Posts: n/a
 
      29th Jun 2005
Hello, I am writing an application where I need to detect witch shape in a
group is selected.

I need to be able to change the text in a shape, and the name of the shape.
This is not a problem if the selected shape is not a part of a group. I need
to be able to detect witch of the shapes in a group is curently selected.

Thanks...
 
Reply With Quote
 
 
 
 
Shyam Pillai
Guest
Posts: n/a
 
      3rd Jul 2005
Raist,
Take a look at this example:
'===============================================
Sub ShapeSelectionWithinGroup()
With ActiveWindow.Selection
If .ShapeRange(1).Type = msoGroup Then
If .HasChildShapeRange Then
'First shape in the selection within the group
With .ChildShapeRange(1)
.TextFrame.TextRange.Text = "Test"
End With
End If
End If
End With
End Sub
'===============================================

--
Regards,
Shyam Pillai

Image Importer Wizard: http://skp.mvps.org/iiw.htm



"Raist via OfficeKB.com" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hello, I am writing an application where I need to detect witch shape in a
> group is selected.
>
> I need to be able to change the text in a shape, and the name of the
> shape.
> This is not a problem if the selected shape is not a part of a group. I
> need
> to be able to detect witch of the shapes in a group is curently selected.
>
> Thanks...



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
excel document with shapes on it but the shapes do not print franharvey@sympatico.ca Microsoft Excel Worksheet Functions 2 22nd Oct 2009 06:17 PM
Naming Auto Shapes and Creating new Shapes =?Utf-8?B?QUwyMDAw?= Microsoft Excel Misc 3 10th Sep 2007 04:12 AM
Adding customized shapes to shapes toolbar =?Utf-8?B?amFtZXNfY2hpbGxp?= Microsoft Powerpoint 2 24th Jul 2007 04:16 AM
When drawing shapes in excel the shapes keep disappearing =?Utf-8?B?VGFwZQ==?= Microsoft Excel Misc 1 6th Oct 2006 04:23 PM
PowerPoint Shapes - identifying visible shapes CharlieMcCabe@googlemail.com Microsoft Powerpoint 2 16th Aug 2006 02:59 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:47 AM.