Last active
May 10, 2017 06:03
-
-
Save hndr91/a4605ea3396f79761da60d1280503ad0 to your computer and use it in GitHub Desktop.
Ms. Word Macro : Pauli Test Generator
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sub PsikoNumGenerator() | |
Randomize Timer | |
theEnd = InputBox("Jumlah angka yang akan dibuat", "Jumlah Angka") | |
If Not IsNumeric(theEnd) Then Exit Sub | |
If Int(theEnd) = 0 Then Exit Sub | |
For i = 1 To theEnd | |
theText = theText & vbTab & Int(Rnd(i) * 10) | |
Next | |
Selection.TypeText Text:=theText | |
End Sub |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment