TechTalkz.com Logo Ask the Experts!

Go Back   TechTalkz.com Technology & Computer Troubleshooting Forums > Operating Systems > Windows 7

vba code for powerpoint quiz to print certificate

Windows 7

 
Reply
Thread Tools Display Modes
Unread 11-10-2014, 08:05 AM   #1
Newbie
Thread Starter
 
Join Date: Oct 2014
Age: 66
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0 Gabrielle is an unknown quantity at this point

Intel

Windows Vista Windows 7


Smile vba code for powerpoint quiz to print certificate

Hi all
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


Sub YourName()
UserName = InputBox(Prompt:="Pleae type your first name!")
MsgBox " Welcome to The Wolverhampton Induction Quiz " + UserName, vbApplicationModal, " Trial Quiz"
End Sub

Sub Correct()
MsgBox "Well Done! That's the correct answer " + UserName, vbApplicationModal, " Trial Quiz"
numberCorrect = numberCorrect + 1
ActivePresentation.SlideShowWindow.View.Next
End Sub

Sub Wrong()
MsgBox "Sorry! That's incorrect " + UserName, vbApplicationModal, " Trial Quiz"
numberWrong = numberWrong + 1
ActivePresentation.SlideShowWindow.View.Next
End Sub

Sub Start()
numberCorrect = 0
numberWrong = 0
YourName
ActivePresentation.SlideShowWindow.View.Next
End Sub

Sub Results()
MsgBox "Well done " & UserName & " You scored " & numberCorrect & " out of " & numberCorrect + numberWrong, vbApplicationModal, " Trial Quiz"
End Sub
Many thanks
Gabrielle

Sponsored Links
Gabrielle is offline   Reply With Quote
Unread 18-10-2015, 10:40 PM   #2
Newbie
 
Join Date: Oct 2015
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0 Josh930 is an unknown quantity at this point

AMD Nvidia

Windows 7


Re: vba code for powerpoint quiz to print certificate

Sponsored Links
https://www.youtube.com/watch?v=aJ1oORt0RoM

Sponsored Links
Josh930 is offline   Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
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


< Home - Windows Help - MS Office Help - Hardware Support >


New To Site? Need Help?

All times are GMT. The time now is 02:05 AM.


vBulletin, Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © 2005-2016, TechTalkz.com. All Rights Reserved - Privacy Policy
Valid XHTML 1.0 Transitional