PDA

View Full Version : Variable in Powerpoint



Andyman448
11-17-2008, 01:30 AM
Hi, again.
I'm working on a Powerpoint presentation. And i want a variable to print your name on a page, instead of in a MSG box.
This is my current code:
Sub Button()

userName = InputBox(Prompt:="Skriv ditt namn h?r")

ActivePresentation.SlideShowWindow _
.View.GotoSlide Int(Rnd * _
ActivePresentation.Slides.Count) + 1
MsgBox ("Hi, " & userName)
End Sub


I want the userName to be printed on the second powerpoint page, on the first page I have a button that hyperlinks to the Button Sub. I can get it printed in a MSG box but it looks poor, it would be much nicer if it could print it directly on to the page.

Some help would be appreciated. Thanks :dunno