Jokes and pranks

Greg Truby said:
PA HS Teacher said:
"Use your powers for good."
So I should not be seduced by the dark side? Workbook_Open() and users with low security settings -- these are the path to the dark side?
Yes, that and probably the Kill Statement. :LOL:
 

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
Thank you to PEN and starl for this post

Code:
Private Sub Workbook_Open()
Application.IgnoreRemoteRequests = True
End Sub

:devilish:

Nick
 
oh - that's evil!
 
Code:
Option Explicit

Public PrevSh  As Worksheet
Public ThisSh  As Worksheet
Public ThisShN As String
Public CopySh  As Worksheet

Private Sub Workbook_SheetActivate(ByVal Sh As Object)
'Erik Van Geit
'050812 1802
With Application
.ScreenUpdating = False
.EnableEvents = False
.DisplayAlerts = False
End With

Set ThisSh = ActiveSheet
On Error Resume Next
PrevSh.Delete
  With CopySh
  .Name = ThisShN
  .Visible = xlSheetVisible
  End With
On Error GoTo 0

With ThisSh
ThisShN = .Name
.Copy before:=Sheets(.Index)
Set CopySh = ActiveSheet
End With

With CopySh
.Visible = xlSheetVeryHidden
End With

With Application
.ScreenUpdating = True
.EnableEvents = True
.DisplayAlerts = True
End With

Set PrevSh = ThisSh

End Sub
 
has anyone ever thought of replacing the Windows error beep with a wav file that announces "Hey Folks..This idiot's got it wrong again!!"

just a thought
 

Forum statistics

Threads
1,216,102
Messages
6,128,846
Members
449,471
Latest member
lachbee

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