Prank

U.Surender

New Member
Joined
Jul 23, 2008
Messages
37
How can i Have a message box that pops up every time the file is opened that says "Shut Up MARIA!!!" just wanna make a friend laugh =p

Thank you,
Jay
 

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college
Right click the Excel logo just to the left of File on the menu bar, select View Code and paste in

Code:
Private Sub Workbook_Open()
MsgBox "Shut Up MARIA!!!", vbCritical
End Sub

Close the code window using the X, save the file, close it then re-open it to see the effect.
 
Right click the Excel logo just to the left of File on the menu bar, select View Code and paste in

Code:
Private Sub Workbook_Open()
MsgBox "Shut Up MARIA!!!", vbCritical
End Sub
Close the code window using the X, save the file, close it then re-open it to see the effect.


This works Perfectly, THANK YOU!
 
Welcome to the Board!

You can also add:

Application.Caption = "Shut Up, Maria!"

Which will change the Excel title bar.
 
Last edited:
Or even

Code:
Private Sub Workbook_Open()
ActiveWindow.Caption = "Shutup"
Application.Caption = "Maria!!!"
Application.StatusBar = "Shut Up MARIA!!!"
MsgBox "Shut Up MARIA!!!"
End Sub
 
If you want to get really creative you could record the "Shut up MARIA" as a wav file and play it when the workbook opens thus sharing your prank with all her co-workers.
 
That's even more fun when you have it turn up the system volume and say "I"M SURFING ***!"


ps-that wasn't actually a bad word???? ****? Not sure who's programing the filter here:-)
 

Forum statistics

Threads
1,222,681
Messages
6,167,581
Members
452,120
Latest member
Luis_Macros

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