Two things to note:
(1) userName is the name of the variable with the user's name. If you have
used a different variable name, put that there instead.
(2) In this code, both the slide with the certificate and the shape where
the name goes are named (CertificateSlide and NameShape, respectively). You
could substitute slide numbers and shape numbers for these names (leaving
off the quotes if you use numbers), or you can use the code in Example 8.7
on my site to name the slide and the shape (leave off the quotes when naming
the shapes).
--David
This is exactly what I want. I have run the example and it works perfectly
but I get an error when I run it from my presentation. I am not a programmer
so I do not understand it. It executes the first subroutine, asks for the
name and accepts it but I do not know how to associate the box I have created
with the variable that has been input. It seems to bomb on the following line:
ActivePresentation.Slides("CertificateSlide").Shapes("NameShape") _
.TextFrame.TextRange.Text = userName
I know it is trung to put the username somewhere at tthis point but again
not being a programmer I do not know how to associate hte actual text box
here. Is there something I need to set up when I create the text box?
Thanks and sorry for what I am sure are very basic questions.
--
David M. Marcovitz
Author of _Powerful PowerPoint for Educators_
http://www.PowerfulPowerPoint.com/
Microsoft PowerPoint MVP
Associate Professor, Loyola University Maryland