Iterate through shape's master shapes

B

Beautiful Piotr

Hi,
I prepared master slide M1 with one special shape. I put into that shape
some information ( in tags property). Now I am creating new slides A,B,C and
I use that one master slide M1 for this and I add new shapes on that new
slides A, B, C.
What I want to achieve is go through all new slides, then get shape which
belongs to master slide and change its text to something different on each
slide. But in Shapes collection in current slide there is no master's slide.
So I check
myPresentation.Slides.Master.Shapes[j] and I found my special shape with
tag data inside. Then I change text ... and it is changed on each slides not
only current one. Can I set master slide shape's text to different values ?

Regards,
Piotr
 
J

John Wilson

Shapes / Text on the master will appear (the same) on all slides using that
master. You would have to have duplicate masters.
 
D

David Marcovitz

Hi,
I prepared master slide M1 with one special shape. I put into that shape
some information ( in tags property). Now I am creating new slides A,B,C and
I use that one master slide M1 for this and I add new shapes on that new
slides A, B, C.
What I want to achieve is go through all new slides, then get shape which
belongs to master slide and change its text to something different on each
slide. But in Shapes collection in current slide there is no master's slide.
So I check
myPresentation.Slides.Master.Shapes[j] and I found my special shape with
tag data inside. Then I change text ... and it is changed on each slides not
only current one. Can I set master slide shape's text to different values ?

Regards,
Piotr


What John said and ...

What version of PowerPoint are you using? Slide masters have changed
over the years so you might not be accessing the master properly.

--David

--
David M. Marcovitz
Author of _Powerful PowerPoint for Educators_
http://www.PowerfulPowerPoint.com/
Microsoft PowerPoint MVP
Associate Professor, Loyola University Maryland
 
B

Beautiful Piotr

Hi ,

I use PPT 2007. So if I proper understand: I need to get current slide's
master slide, then create its copy and assign to current slide that new copy.
Then I have one master slide per "normal" slide and I can change any shape on
that new created master. Can You provide any code for such operation ? I can
iterate slides/shapes buy I could not find a way to copy master and re-assign
to slide,

Regards,
Piotr

Steve Rindsberg said:
Hi,
I prepared master slide M1 with one special shape. I put into that shape
some information ( in tags property). Now I am creating new slides A,B,C and
I use that one master slide M1 for this and I add new shapes on that new
slides A, B, C.
What I want to achieve is go through all new slides, then get shape which
belongs to master slide and change its text to something different on each
slide. But in Shapes collection in current slide there is no master's slide.
So I check
myPresentation.Slides.Master.Shapes[j] and I found my special shape with
tag data inside. Then I change text ... and it is changed on each slides not
only current one. Can I set master slide shape's text to different values ?


Shapes placed on the master will appear on every slide based on that master.

PowerPoint doesn't make COPIES of these shapes that you can change individually
on each slide, it just shows the shape itself

It sounds like you might need to locate the master shape then copy/paste it to
the slides where you want to change the text.


==============================
PPT Frequently Asked Questions
http://www.pptfaq.com/

PPTools add-ins for PowerPoint
http://www.pptools.com/


.
 

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