|11-10-2014, 08:05 AM||#1|
Join Date: Oct 2014
Thanked 0 Times in 0 Posts
Rep Power: 0
vba code for powerpoint quiz to print certificate
I have ben asked to design a quiz for an elearning module which I have done using PowerPoint and very basic VBA code; could anybody let me have a code so that the certificate puts the persons name in and then prints out automatically? This is the first time I have ever used VBA so am at a loss as how to proceed and should be grateful for any advice. I have copied below the code I have used so far for your info
Dim UserName As String
Dim numberCorrect As Integer
Dim numberWrong As Integer
UserName = InputBox(Prompt:="Pleae type your first name!")
MsgBox " Welcome to The Wolverhampton Induction Quiz " + UserName, vbApplicationModal, " Trial Quiz"
MsgBox "Well Done! That's the correct answer " + UserName, vbApplicationModal, " Trial Quiz"
numberCorrect = numberCorrect + 1
MsgBox "Sorry! That's incorrect " + UserName, vbApplicationModal, " Trial Quiz"
numberWrong = numberWrong + 1
numberCorrect = 0
numberWrong = 0
MsgBox "Well done " & UserName & " You scored " & numberCorrect & " out of " & numberCorrect + numberWrong, vbApplicationModal, " Trial Quiz"
|Thread||Thread Starter||Forum||Replies||Last Post|
|Help Creating an Advanced Quiz in PowerPoint with a Timer on each slide||pt1523||Programming||0||18-09-2012 09:06 PM|
|Who to get Code signing certificate from?||Nobody||Microsoft Device Drivers||2||03-12-2007 01:24 AM|
|Who to get Code signing certificate from?||Nobody||Microsoft Device Drivers||3||03-12-2007 01:11 AM|
|Who to get Code signing certificate from?||Nobody||Microsoft Device Drivers||1||03-12-2007 01:10 AM|
|make quiz in powerpoint 2007||grinmrjk||Microsoft Office Powerpoint||31||20-11-2007 07:31 AM|
|New To Site?||Need Help?|