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

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
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
 
Even worse if you make sure alerts are off.

Or, in ThisWorkbook:

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

*muahahaha...*
 
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
 
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
 
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,214,427
Messages
6,119,419
Members
448,895
Latest member
omarahmed1

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
Back
Top