I am trying to create a training PPT that will allow the
user to enter information in a text box and then copy what
is typed and paste it on another slide to compare that
answer to a correct answer. Any ideas. "Are there any
good books on VBA?
For resources on learning VBA, check here:
http://www.rdpslides.com/pptfaq/FAQ00032.htm
David Marcovitz' book may be just what you're after (there's a link on that
page to his site)
Also, consider this:
Function Ask(sQuestion as String, sCorrectAnswer as String) as Boolean
' Asks for user input, compares it against correct answer supplied
' Returns true or false, depending on whether user gave correct answer or not
If ucase(InputBox(sQuestion,"Please type your answer")) = _
ucase(sCorrectAnswer) Then
Ask = True
Else
Ask = False
End If
End Function
Sub TestAskFunction()
' Here's how you'd use the Ask Function
If Ask("How old is Steve","Paleolithic") then
msgbox "Congratulations! He really IS old, isn't he!"
Else
msgbox "No, he's much older than that"
End if
End Sub
--
Steve Rindsberg, PPT MVP
PPT FAQ:
www.pptfaq.com
PPTools:
www.pptools.com
================================================
Featured Presenter, PowerPoint Live 2004
October 10-13, San Diego, CA
www.PowerPointLive.com
================================================