Brian Pierce
asked on
Powerpoint Macro
I am making a simple powerpoint training quiz to run in Powerpoint 2007 amd 2010 and I'm almost there -
I've just got a couple of issues with the final 'results' slide.
What I has hoping to do was:
When the slide appears - enter some text into a pre-existing text box along the lines of
TextBox1.TextFrame.TextRan ge.Text = "your score was " + QScore + "out of "+QMax + ". Thank you"
But I can't seem to be able to do this, or indeed find out how to find the name of and address an existing text box.
I was also hpoing to display a smile or frown (from clipart images), by having the two images on the slide but invisible, and then making the appropriate image visible - but again I can't seem to find out how to address these images, never mind make one of them visible
So in summary
How do I call the sub when the slide appears ?
How can I put the text in the text box ?
How can I make an image visible ?
Thanks in anticipation
I've just got a couple of issues with the final 'results' slide.
What I has hoping to do was:
When the slide appears - enter some text into a pre-existing text box along the lines of
TextBox1.TextFrame.TextRan
But I can't seem to be able to do this, or indeed find out how to find the name of and address an existing text box.
I was also hpoing to display a smile or frown (from clipart images), by having the two images on the slide but invisible, and then making the appropriate image visible - but again I can't seem to find out how to address these images, never mind make one of them visible
So in summary
How do I call the sub when the slide appears ?
How can I put the text in the text box ?
How can I make an image visible ?
Thanks in anticipation
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks to you both - I'm not at my normal machine right now - I'll give it a go when I get back
... it seemed to be such a straightforward to do ... until I tried to do it !
... it seemed to be such a straightforward to do ... until I tried to do it !
Let us know how you get on.
Selection Pane (a truly useful addition in 2007) is HOME tab >>Editing >>Select
You can use it to read the names AND change them to something more useful.
Selection Pane (a truly useful addition in 2007) is HOME tab >>Editing >>Select
You can use it to read the names AND change them to something more useful.
ASKER
Thanks to you both - I have sucessfully implimented this and it works :-)
- good tip about the selection pane - I would have never found that.
- good tip about the selection pane - I would have never found that.
?activeWindow.Selection.Sh
ALso the startup either needs to be triggered manually or fired off a button in the presentation
AUto-open macros are possible but are a subject in their own right for PPT, (see http://skp.mvps.org/autoevents.htm for example)
Chris