G
Guest
I'm like to name a shape (eg. a PlaceHolder or text box) on my slide master,
and store it in a .pot file. Then I would like to create a new presentation,
apply my .pot template to it, and create a bunch of new slides, each
containing a PlaceHolder or text box bearing the name saved in my .pot file
(eg. "Jim's Box"). Is this doable and if so how? I think I'm missing some
basic understanding of how PowerPoint templates and/or macros work.
Here's what I currently do:
- Open PowerPoint
- Go to the master slide
- Select the PlaceHolder text box
- Run the SetShapeName() macro in ch. 8 of David M's sample code for his book
- Check the name of the text box using the GetShapeName() macro (and the
shape is correctly named)
- Save the presentation as a .pot file
- Create a new PPT presentation and apply my .pot template using Apply Slide
Layout (not sure if this is the correct way to apply the template)
- Create a new slide (hopefully from the master)
- And surprise, instead of the new PlaceHolder text box name set to my new
name (eg. "Jim's Box"), it's named "Rectangle 3"
Am I doing this correctly, or missing something basic?
The reason for using a common shape name on every is so I can write macros
that scan or loop through my slides looking for the same shape on every slide
and perform some operation on it, like changing the font or writing the
contents to a file.
and store it in a .pot file. Then I would like to create a new presentation,
apply my .pot template to it, and create a bunch of new slides, each
containing a PlaceHolder or text box bearing the name saved in my .pot file
(eg. "Jim's Box"). Is this doable and if so how? I think I'm missing some
basic understanding of how PowerPoint templates and/or macros work.
Here's what I currently do:
- Open PowerPoint
- Go to the master slide
- Select the PlaceHolder text box
- Run the SetShapeName() macro in ch. 8 of David M's sample code for his book
- Check the name of the text box using the GetShapeName() macro (and the
shape is correctly named)
- Save the presentation as a .pot file
- Create a new PPT presentation and apply my .pot template using Apply Slide
Layout (not sure if this is the correct way to apply the template)
- Create a new slide (hopefully from the master)
- And surprise, instead of the new PlaceHolder text box name set to my new
name (eg. "Jim's Box"), it's named "Rectangle 3"
Am I doing this correctly, or missing something basic?
The reason for using a common shape name on every is so I can write macros
that scan or loop through my slides looking for the same shape on every slide
and perform some operation on it, like changing the font or writing the
contents to a file.