adding an shape to an existing group

M

Madla

I've been struggling with changing groups via VBA in Powerpoint

I don't think it's possible as I can't delete a shape from a group
either.

Is it possible to add a shape to an existing group of shapes without
regrouping, getting each items name and then doing:

shapeArray is an array of shape names
myDocument is the current slide

myDocument.Shapes.Range(shapeArray).Group

Thanks...martin
 
S

Steve Rindsberg

I don't think it's possible as I can't delete a shape from a group
either.

Is it possible to add a shape to an existing group of shapes without
regrouping, getting each items name and then doing:

shapeArray is an array of shape names
myDocument is the current slide

myDocument.Shapes.Range(shapeArray).Group

That's about it. You can read/write most of the properties of individual items
in a group but you can't delete them or add new ones w/o doing something along
the lines you've described.

But that's just the *start* of the fun - you probably want to know this if
you're bidding on a a project:

What if one of the group members is itself a group? One that contains other
groups?

And when you ungroup a group, the group object and all its properties go away.
If the original group was animated or had action settings, you may need to
preserve those in order to apply them to the new group you'll create when
you're done.
 
S

Steve Rindsberg

Oh, by the way, Martin ... you might want to use a fake email address when
posting to newsgroups; slimy people collect email addresses from groups like
this and spam the owners.
 
J

John Langhans [MSFT]

[CRITICAL UPDATE - Anyone using Office 2003 should install the critical
update as soon as possible. From PowerPoint, choose "Help -> Check for
Updates".]

Hello,

PowerPoint doesn't provide the functionality that you are looking for
(either through the user interface or through the object model).

If you (or anyone else reading this message) think that it's important that
PowerPoint provide this kind of functionality, don't forget to send your
feedback (in YOUR OWN WORDS, please) to Microsoft at:

http://register.microsoft.com/mswish/suggestion.asp

As with all product suggestions, it's important that you not just state
your wish but also WHY it is important to you that your product suggestion
be implemented by Microsoft. Microsoft receives thousands of product
suggestions every day and we read each one but, in any given product
development cycle, there are only sufficient resources to address the ones
that are most important to our customers so take the extra time to state
your case as clearly and completely as possible.

IMPORTANT: Each submission should be a single suggestion (not a list of
suggestions).

John Langhans
Microsoft Corporation
Supportability Program Manager
Microsoft Office PowerPoint for Windows
Microsoft Office Picture Manager for Windows

For FAQ's, highlights and top issues, visit the Microsoft PowerPoint
support center at: http://support.microsoft.com/default.aspx?pr=ppt
Search the Microsoft Knowledge Base at:
http://support.microsoft.com/default.aspx?pr=kbhowto

This posting is provided "AS IS" with no warranties, and confers no rights.
Use of any included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top