Simple Powerpoint Vba Macro Problem

Joined
Nov 22, 2011
Messages
1
Reaction score
0
im making a quiz in powerpoint vba but the YourName statement doest show the MSG box nor do the Correct and Wrong statements here is my code :
Code:
Dim numberCorrect As String
Dim UserName As Integer
Dim numberWrong As String
Sub YourName()
UserName = InputBox(Prompt:="Type Your Name")
MsgBox (" Welcome to the Quiz " & ", " & UserName), vbApplicationModal, " Quiz "
End Sub
Sub Correct()
MsgBox (" That is correct, move on & UserName "), vbApplicationModal, " Quiz "
numberCorrect = numberCorrect + 1
SlideShowWindows(1).View.Next
End Sub
Sub Wrong()
MsgBox (" Sorry Thats the wrong answer & UserName"), vbApplicationModal, " Quiz "
numberWrong = numberWrong + 1
SlideShowWindows(1).View.Next
End Sub
Sub Start()
numberCorrect = 0
numberWrong = 0
YourName
SlideShowWindows(1).View.Next
End Sub
Sub Results()
MsgBox ("You Got " & numberCorrect & " out of " & numberWrong + numberCorrect & ", " & UserName), vbApplicationModal, " Quiz "
SlideShowWindows(1).View.Next
End Sub

Your help would be much appreciated
Thank you in advanced
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top