Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 4

Private Sub CommandButton1_Click()

If sandi.Text = "1234" Then

SlideShowWindows(Index:=1).View.Next

Else

MsgBox "password salah", 28, "incorrect"

End If

nama.Text = ""

Password.Text = ""

End Sub
Dim nilai As Integer

Dim konfirmasi As String

Dim Nama As String

Sub ambilnama()

Nama = InputBox("Masukkan Nama Kamu : ")

MsgBox "Kuis Dimulai " + Nama

SlideShowWindows(Index:=1).View.Next

End Sub

Sub Mulai()

ambilnama

nilai = 0

End Sub

Sub Benar()

konfirmasi = MsgBox("yakin dengan jawaban kamu?", vbYesNo, " Cek Jawaban!")

If konfirmasi = vbYes Then

nilai = nilai + 20

ActivePresentation.SlideShowWindow.View.Next

End If

End Sub

Sub Salah()

konfirmasi = MsgBox("yakin dengan jawaban kamu?", vbYesNo, " Cek Jawaban!")

If konfirmasi = vbYes Then

ActivePresentation.SlideShowWindow.View.Next

End If

End Sub

Sub Skor()

'tombol untuk selesai

MsgBox (" nilai anda adalah " & nilai & Nama)
'+ username, "& nilai"

End Sub

Sub countdown()

Dim time As Date

time = Now()

Dim count As Integer

count = 30

time = DateAdd("s", 30, time)

Do Until time < Now()

DoEvents

ActivePresentation.SlideShowWindow.View.Slide.Shapes("kotakwaktu 1").TextFrame.TextRange =
Format((time - Now()), "hh:mm:ss")

Loop

End Sub

Private Sub CommandButton3_Click()

If TextBox3.Text = "CINDY" And TextBox4.Text = "KUIS1" Then

MsgBox "MULAI", vbInformation, "KUIS 1 RELATIVITAS"

SlideShowWindows(Index:=1).View.Next

Else

MsgBox "Password anda Salah", 16, "Error"

End If
TextBox3.Text = ""

You might also like