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

ActivePresentation.SlideShowWindow.View.Next

End Sub

Sub Correct()

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

NumberCorrect = NumberCorrect + 5

ActivePresentation.SlideShowWindow.View.Next

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. Tags: .

Software UPS APC Ubuntu/Linux Sate Klatak

Tinggalkan Balasan

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

Logo WordPress.com

You are commenting using your WordPress.com 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 )

Foto Google+

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

Connecting to %s

Trackback this post  |  Subscribe to the comments via RSS Feed


Statistik

  • 5,603 hits

Flag Counter

free counters

%d blogger menyukai ini: