The classic prank of switching the M and N key on the keyboard is one of the best. Idiots will type and type before they realize what went wrong. But why switch the actual keys when you can write the code? This is an adaptation of a timeless prank, that I’m sure you will enjoy.
Step 1: Open Microsoft Word
Step 2: Press Alt F11
Step 3: Copy the code below into your normal template:
Sub AddKeyBinding()
With Application
CustomizationContext = NormalTemplate
KeyBindings.Add KeyCode:=BuildKeyCode(wdKeyM), KeyCategory:=wdKeyCategoryCommand, _
Command:=”SwitchM”End With
With Application
CustomizationContext = NormalTemplate
KeyBindings.Add KeyCode:=BuildKeyCode(wdKeyN), KeyCategory:=wdKeyCategoryCommand, _
Command:=”SwitchN”End With
End Sub
Sub SwitchM()
Dim x As Document
Set x = activedocumentSelection.TypeText Text:=”n” End Sub
Sub SwitchN()
Dim x As Document
Set x = activedocumentSelection.TypeText Text:=”m”
End Sub
Step 4: Click Play
Step 5: Let them figure out how to fix it

