Good Excel Practical Jokes, Pranks, Mean Tricks, etc.

Looks like you could travel in time with that thing. Cool!! Not sure you'd make it back though :)
 

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.
OMG I'm in tears thinking how fun this would be........I realize this topic is old but if anyone is still reading thanks for the suggestions.
 
Inspired by a forum question from yesterday:

Code:
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Application.WindowState = xlNormal
Application.Width = Int(Rnd() * 1000) - 100
End Sub

Very basic, but funny watching people try to work with it!!
 
Inspired by a forum question from yesterday:

Code:
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Application.WindowState = xlNormal
Application.Width = Int(Rnd() * 1000) - 100
End Sub

Very basic, but funny watching people try to work with it!!

Oh, I could have so much fun with that! (Must will myself not to be juvenile...)

Smitty
 
Inspired by a forum question from yesterday:

Code:
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Application.WindowState = xlNormal
Application.Width = Int(Rnd() * 1000) - 100
End Sub

Very basic, but funny watching people try to work with it!!

Now that I like :LOL:
 
a variation
screen shrinks each "x" selections & stays in the middle
only when screen is in normal state
I expect some people to drag screen from time to time

works nicely for me, perhaps you'll need to experiment with the values
test holding arrowkey
Code:
Option Explicit

Dim i As Long
Dim j As Long

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
'Erik Van Geit
'070503

'screen will shrink each 'Req' times
Const Freq = 3
Const r = 0.75

i = i + 1
    
    If i < Freq Then Exit Sub
    i = 0
    j = j + 1
    With Application
        If .WindowState = xlNormal Then
        .Width = .Width - r
        .Height = .Height - .Height / .Width * r
            If j Mod 2 = 0 Then
            .Top = .Top + r * 3
            .Left = .Left + r * 1.75
            End If
        End If
    End With

End Sub
evil regards,
Erik
 
Ok, just messing around now:

Code:
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Dim i As Integer
Application.WindowState = xlNormal
Application.Width = Int(Rnd() * 1000) - 100
i = Int(Rnd() * 4 + 1)
Select Case i
    Case 1: Windows.Arrange xlCascade
    Case 2: Windows.Arrange xlArrangeStyleTiled
    Case 3: Windows.Arrange xlArrangeStyleHorizontal
    Case 4: Windows.Arrange xlArrangeStyleVertical
End Select
End Sub
 
Rofl I had a user do this be accident I couldn't figure it out. He accidently clicked "New window", then saved. Then came to me and was like "every time I open this workbook it opens twice". I couldn't figure it out. Von Pookie finally clued me in. Sooo try a little:
Code:
ActiveWindow.NewWindow

One more for the road:
Code:
Public Declare Function WeirdSound Lib "Kernel32.dll" Alias "Beep" (ByVal lFrequency As Long, ByVal lDuration As Long) As Boolean
Sub TheHardDriveisDying()
WeirdSound 40, 10000
End Sub
 
IT MAY OR MAY NOT WORK

It worked on some computers in the office but it did not work on all. Try this, hit Ctrl+Alt+the Down Arrow. It will turn the screen upsided down, to reverse it hit Ctrl+Alt+the up arrow
 
How about save your spreadsheet with the following code into the windows startup folder....

Code:
VBA.Shell "Shutdown -f", vbHide

Causing windows to shutdown as soon as a spreadsheet is opened, which of course is opened every time windows is loaded :>

Should cause the layperson to scream with frustration, but would be easy enough for an admin to sort out
 

Forum statistics

Threads
1,215,429
Messages
6,124,834
Members
449,192
Latest member
mcgeeaudrey

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