You are on page 1of 1

Published on Jan 26, 2016

How to make an interactive quiz using Power Point 2010. Using Visual Basic for Application to write
codes. You can copy the code which available below description in this video. Belajar membuat kuis
interaktif menggunakan Microsoft Power Point. Buat soal pilihan ganda dan memberikan skor
akhirnya secara otomatis.

Copy-kan kode-kode di bawah ini ke jendela module pada visual basic for application:
===========================
Dim nilai As Integer
Dim konfirmasi As String
Sub mulai_kuis()
nilai = 0
ActivePresentation.SlideShowWindow.View.Next
End Sub
Sub benar()
konfirmasi = MsgBox("Yakin dengan jawaban anda?", vbYesNo, " Cek Jawaban!")
If konfirmasi = vbYes Then
nilai = nilai + 2
ActivePresentation.SlideShowWindow.View.Next
End If
End Sub
Sub salah()
konfirmasi = MsgBox("Yakin dengan jawaban anda?", vbYesNo, " Cek Jawaban!")
If konfirmasi = vbYes Then
ActivePresentation.SlideShowWindow.View.Next
End If
End Sub
Sub cek_skor()
MsgBox (" skor anda adalah " & nilai)
konfirmasi = MsgBox(" Ingin Mengulangi kuis? ", vbYesNo)
If konfirmasi = vbYes Then
ActivePresentation.SlideShowWindow.View.First
End If
If konfirmasi = vbNo Then
ActivePresentation.SlideShowWindow.View.Next
End If
End Sub
=================================

Good Luck! Dont forget to SUBSCRIBE US!


Category
o Howto & Style
License
o Standard YouTube License

You might also like