practical jokes on coworkers using VBA?

jayd4wg

Board Regular
Joined
Mar 25, 2005
Messages
197
I haven't seen one of these threads in a while...so what's your favorite prank?

Most of the people i have around here are pretty computer ILLiterate and the occasional random 1 in 10 offering of application.cursor=xlWait keeps them tied up for a good while.

Don't post anything to get anyone fired...but put the cards on the table...what are YOUR funnies?
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.

Tazguy37

MrExcel MVP
Joined
May 28, 2004
Messages
4,237
Bruno came up with this one. I love it! :LOL:

Code:
Private Sub Workbook_Open()
    Application.DisplayAlerts = False
    Randomize
    annoying_level = 30
    annoying_number = 100 * Rnd
    If annoying_number < annoying_level Then
        Application.Quit
    End If
End Sub
 

Tazguy37

MrExcel MVP
Joined
May 28, 2004
Messages
4,237
ADVERTISEMENT
Even worse if you make sure alerts are off.

Or, in ThisWorkbook:

Code:
Private Sub Workbook_Activate()
    ActiveWindow.WindowState = xlMinimized
End Sub

*muahahaha...*
 

litrelord

Well-known Member
Joined
Dec 1, 2002
Messages
519
Not really a practical joke as such but...

(Workbook module)

Code:
Private Sub Workbook_Open()
Application.OnKey "{F1}", "GetSomeRealHelp"
End Sub

(normal module)
Code:
Sub GetSomeRealHelp()
ActiveWorkbook.FollowHyperlink Address:="http://www.mrexcel.com/board2/search.php", _
    NewWindow:=True
End Sub

(Not that I doubt the usefulness of excel’s built in help but you have to be quite logical/technically minded to get what it’s saying most of the time. At least here you get plain English and can ask questions.)

Nick
 

Tazguy37

MrExcel MVP
Joined
May 28, 2004
Messages
4,237
ADVERTISEMENT
litrelord said:
Not really a practical joke as such but...

Nick

That's really cool! Not a prank, but actually helpful! Very nice.
 

erik.van.geit

MrExcel MVP
Joined
Feb 1, 2003
Messages
17,832
some more "Jokes and pranks""
made yesterday in a "normal" thread
but in fact it's better here :)
Code:
Sub disney()
q = "uo yod la pxey tq l garf layrepuq"
    With Application
    For I = 5 To 0 Step -1
    mary = mary & poppins & .Substitute(.Substitute(.Substitute(StrReverse(Mid(q, I * 6 + 1, 6)), "q", "s"), "y", "c"), " ", "i")
    Next I
    End With
MsgBox IIf(Right(mary, poppins) = "s", marypoppins, Right(mary, Len(mary)) & "s"), 48, Left(mary, 5)
End Sub

and
 

GlennUK

Well-known Member
Joined
Jul 8, 2002
Messages
11,723
Don't even need VBA ... before starting up Excel, download the Klingon font :

http://www.kasper-online.de/en/docs/startrek/klingon.htm

and instal it. Start Excel. Do menu command Tools/Options/General and make the Standard font Klingon. Press OK. Close Excel.

Wait until the user opens an Excel document ..."Hey, I can't read my formulae in the formula bar ... it's all squiggles."

Heh heh heh heh heh.
 

Forum statistics

Threads
1,195,835
Messages
6,011,872
Members
441,651
Latest member
drewe2000

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top