Advertisement
Guest User

Script Scoring Pada PowerPoint -gilangk15.blogspot.com

a guest
Dec 14th, 2014
286
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.78 KB | None | 0 0
  1. Dim nilai As Integer
  2. Dim konfirmasi As String
  3. Sub mulai_kuis()
  4. nilai = 0
  5. ActivePresentation.SlideShowWindow.View.Next
  6. End Sub
  7. Sub benar()
  8. konfirmasi = MsgBox("Yakin dengan jawaban anda?", vbYesNo, " Cek Jawaban!")
  9. If konfirmasi = vbYes Then
  10. nilai = nilai + 2
  11. ActivePresentation.SlideShowWindow.View.Next
  12. End If
  13. End Sub
  14. Sub salah()
  15. konfirmasi = MsgBox("Yakin dengan jawaban anda?", vbYesNo, " Cek Jawaban!")
  16. If konfirmasi = vbYes Then
  17. ActivePresentation.SlideShowWindow.View.Next
  18. End If
  19. End Sub
  20. Sub cek_skor()
  21. MsgBox (" skor anda adalah " & nilai)
  22. konfirmasi = MsgBox(" Ingin Mengulangi kuis? ", vbYesNo)
  23. If konfirmasi = vbYes Then
  24. ActivePresentation.SlideShowWindow.View.First
  25. End If
  26. If konfirmasi = vbNo Then
  27. ActivePresentation.SlideShowWindow.View.Next
  28. End If
  29. End Sub
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement