-
Insert Sound file in PPT Macro/VBA
Dear Friends,
I seek help to insert sound file in ppt through macro. Attahced PPT is to be used for performing a quiz and it contains macro if correct answer is selected it prompts "Correct" and if incorrect answer is selected it prompts "Wrong answer"
Now, I need help to insert different sounds for correct & incorrect answers.
Any kind of help is highly appreciated.
I am not able to attach the file due to size restrictions. Hence below is the code i am using
Sub Correct()
Points.Caption = (Points.Caption) + 10
Output = MsgBox("Your Answer is correct, well done!", vbOKOnly, "Correct Answer")
ActivePresentation.SlideShowWindow.View.Next
End Sub
Sub Wrong()
Points.Caption = (Points.Caption) - 0
Output = MsgBox("Your Answer is wrong.", vbOKOnly, "Incorrect Answer")
End Sub
Sub Reset()
Points.Caption = 0
ActivePresentation.SlideShowWindow.View.Exit
End Sub
Sub Retry()
Points.Caption = 0
ActivePresentation.SlideShowWindow.View.GotoSlide (1)
End Sub
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules