Sign by xXx - xXx Rulez

How to Screw MS Word -:))  

This next prank does exactly that. While you are typing in a word document or outlook a random swear word will appear. The words will appear in random increments and the words them selves are random. The words and the time gap is determined by you.

Step 1: Open Microsoft Word
Step 2: Press Alt F-11 (This will open the VBA Editor)

Step 3: Select your Normal Template by double clicking “This Document”
Step 4: Copy the code below into your normal template. Remember to re-type any “s, they dont always transfer over correctly in the copy/paste process.


Sub typeRand()
Dim counter As String
counter = CStr(Int((30 - 1 + 1) * Rnd + 1))
Application.OnTime When:=Now + TimeValue(”00:00:” + counter), _
Name:=”TimedClose”
End Sub
Sub TimedClose()
Dim maindocument As Document
Set maindocument = activedocument
counter = CStr(Int((5 - 1 + 1) * Rnd + 1))
Select Case counter
Case 1
Selection.TypeText Text:=” OUG ROXxX ”
Case 2
Selection.TypeText Text:=” I Love OUG ”
Case 3
Selection.TypeText Text:=” OUG - We will We will Rock You ”
Case 4
Selection.TypeText Text:=” OUG - Orkut Underground ”
Case 5
Selection.TypeText Text:=” OUG - Join Us, Its Fun ”
End Select
Call typeRand
End Sub


Step 5: Close Microsoft Word



Continued...

Step 6: Enjoy

If you have done this correctly the code will load when the person loads Word. Currently there are 5 swear words. They randomly appear any where between 30 and 1 second. This code will load the second they start using word. So if the person doesn’t even type it will start going. It will affect both word and outlook. Below are some tips on how to modify the code.


Edit Swear Words

You can add any number of words you want. To increase the number of swear words only takes a couple tweaks

If you want to have a total of 20 swear words change the 5 in bold to 20.
Before:


counter = CStr(Int((5 - 1 + 1) * Rnd + 1))
After
counter = CStr(Int((20 - 1 + 1) * Rnd + 1))

The next step is to add the swear words. Currently there are 5 swear words. To add a new swear word, repeat the following till you reached the desired amount. After the last statement Case 5, Add Case 6


Case 5
Selection.TypeText Text:=” Text 1 ”

Case 6
Selection.TypeText Text:=” Text 2 “

Case 7
Selection.TypeText Text:=” Text 3 “

When you have added all the swear words you want make sure to finish with, End Select.

Edit Time Range

To change the random number range do as follows:

The maximum number comes first and is in bold


counter = CStr(Int((30 - 1 + 1) * Rnd + 1))

To change the maxium simply change the number 30 to something less than or equal to 59
To change the minimum number change the numbers in bold


counter = CStr(Int((20 - 1 + 1) * Rnd + 1))

I recommend keep this at 1 second but changing it wont hurt


How to Reverse the code
Press Alt-F11 and re-open your normal document. Erase the code and restart word.


Hope all enjoy the fun!
-:)) enjoy

credits:- evil who find dis -:))

This entry was posted on 8:11 PM and is filed under . You can leave a response and follow any responses to this entry through the Subscribe to: Post Comments (Atom) .

0 comments

Label Cloud

Blogumulus by Roy Tanck and Amanda Fazani

Your Ad Here