macro soal

Upload: tarthula

Post on 13-Apr-2018

221 views

Category:

Documents


0 download

TRANSCRIPT

  • 7/26/2019 Macro Soal

    1/1

    Dim nilai As IntegerDim konfirmasi As StringSub mulai_tes()nilai=0ActivePresentation.SlideShowWindow.View.NextEnd SubSub benar()konfirmasi=MsgBox("Yakin dengan Jawaban Anda ?", vbYesNo, "Cek Jawaban!")if konfirmasi=vbYes thennilai=nilai+10ActivePresentation.SlideShowWindow.View.Nextend ifend subSub Salah()Konfirmasi=MsgBox("Yakin dengan Jawaban Anda ?", vbYesNo,"Cek Jawaban!")if konfirmasi=vbYes ThenActivePresentation.SlideShowWindow.View.Nextend ifend subSub Cek_Skor()MsgBox("Skor anda adalah "& nilai)Konfirmasi=MsgBox("Ingin mengulang Kuis ?"),vbYesNo)if konfirmasi=vbYes thenActivePresentation.SlideShowWindow.View.Next

    end ifend sub