Macros PowerPoint Quiz

20 November 2010 at 10:37 AM Tinggalkan komentar

Public NumberCorrect As Integer

‘Public variables retain their value so they can be added to each time a macro is run.

Sub Initialise()

‘Sets the score to zero so it’s not added to the previous user’s total, and goes to the first question.

NumberCorrect = 0


End Sub

Sub Correct()

‘Adds one to the total correct and moves to the next slide

NumberCorrect = NumberCorrect + 5


End Sub

Sub Display()

‘Shows the result in a pop-up message box with some explanatory text

MsgBox (“selamat, kamu “& ” mendapatkan skor “& NumberCorrect)

End Sub


Entry filed under: Coretan.

Software UPS APC Ubuntu/Linux Sate Klatak

Tinggalkan Balasan

Isikan data di bawah atau klik salah satu ikon untuk log in:


You are commenting using your account. Logout /  Ubah )

Foto Google+

You are commenting using your Google+ account. Logout /  Ubah )

Gambar Twitter

You are commenting using your Twitter account. Logout /  Ubah )

Foto Facebook

You are commenting using your Facebook account. Logout /  Ubah )


Connecting to %s

Trackback this post  |  Subscribe to the comments via RSS Feed


  • 5,886 hits

Flag Counter

free counters

%d blogger menyukai ini: