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

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN
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,215,507
Messages
6,125,212
Members
449,214
Latest member
mr_ordinaryboy

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