Closed Thread
Results 1 to 28 of 28

Best Excel pranks and jokes

  1. #1
    Registered User
    Join Date
    02-27-2014
    Location
    Range("A1")
    MS-Off Ver
    Excel 2007
    Posts
    24

    Wink Best Excel pranks and jokes

    Would you guyz teach me a few pranks and tricks I can do using Excel and VBA? I've got a few ideas like this evil example:
    Right click on a sheet's tab and choose (View Code) then paste this code in the white space in front of you:
    Please Login or Register  to view this content.
    ZAX
    Last edited by DarthVader68; 03-18-2014 at 08:17 AM.
    I'm glad you got it to work :-D
    ZAX

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,944

    Re: Best Excel pranks and jokes

    Sorry, but I actually dont think that is very funny at all
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,492

    Re: Best Excel pranks and jokes

    No, not funny at all. As it closes the application, it would also attempt to close all open workbooks prompting the user to save them. If they don't realise what is happening, they could lose data.

    Stupid, dangerous and unprofessional.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  4. #4
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,607

    Re: Best Excel pranks and jokes

    Maybe this one:

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    02-27-2014
    Location
    Range("A1")
    MS-Off Ver
    Excel 2007
    Posts
    24

    Red face Another Joke

    Quote Originally Posted by TMS View Post
    No, not funny at all. As it closes the application, it would also attempt to close all open workbooks prompting the user to save them. If they don't realise what is happening, they could lose data.

    Stupid, dangerous and unprofessional.
    Cmon TMS and FDibbins, What do you think I'm gonna sell the code or use it randomly? I'll only use it with ppl I know and I'll be watching lol, I'll make sure myself his data is goin to be all safe, I never harmed anyone, I only do this for fun bro ;-)
    Here's another one:

    ===========================================================================================================
    First, Take a screen shot of your desktop as it is and then set this picture as your wallpaper.
    Second, If you're using Windows XP: Right click on your desktop and from the (Arrange Icons By) menu unmark (Show Desktop Icons)
    If you're using Windows 7: Right click on your desktop and from the (View) menu unmark (Show Desktop Icons)
    Third, Right click on the taskbar and choose (Properties), Then mark (Auto-hide the taskbar)
    ===========================================================================================================

    This prank is completely harmless but will make a good joke to your friends :-D
    ZAX

  6. #6
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,492

    Re: Best Excel pranks and jokes

    No, it won't, it definitely won't.

    Just checked your profile. I think your date of birth details probably say everything we need to do.

  7. #7
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: Best Excel pranks and jokes

    I'm not 100% sure this works so test it on your own version first, put the code in a new module, save the workbook and run macro_1
    Please Login or Register  to view this content.
    Last edited by ragulduy; 03-17-2014 at 12:53 PM.

  8. #8
    Registered User
    Join Date
    02-27-2014
    Location
    Range("A1")
    MS-Off Ver
    Excel 2007
    Posts
    24

    Re: Best Excel pranks and jokes

    Actually guys, None of the previous two suggested pranks worked, but thank you a lot for sharing with me, Rag: Maybe yours didn't work for me cuz I have xl2007?
    Thanx guyz
    TMS, I expected you to understand without having to do whatever you did, but thx for understanding after all :-)
    ZAX

  9. #9
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,944

    Re: Best Excel pranks and jokes

    I'll only use it with ppl I know and I'll be watching lol, I'll make sure myself his data is goin to be all safe, I never harmed anyone, I only do this for fun bro ;-)
    This is the water cooler, anyone on the forum can see what you post - and try it where they want...you would have no control over that, so please consider that for future reference

  10. #10
    Forum Expert macropod's Avatar
    Join Date
    12-22-2011
    Location
    Canberra, Australia
    MS-Off Ver
    Word, Excel & Powerpoint 2003 & 2010
    Posts
    3,726

    Re: Best Excel pranks and jokes

    Perhaps you could have a bit of fun with:
    Please Login or Register  to view this content.
    Running it once reverses all text on the active sheet. Running it a second time restores the text.
    Cheers,
    Paul Edstein
    [Fmr MS MVP - Word]

  11. #11
    Forum Moderator vlady's Avatar
    Join Date
    09-22-2011
    Location
    Philippines - OLSHCO -Guimba-Nueva Ecija
    MS-Off Ver
    2021
    Posts
    4,361

    Re: Best Excel pranks and jokes

    yup the date of birth tells it maybe also the user name? what do you think?
    I think people forget the word "THANK YOU!!!!" Do you still know it???

    There is a little star ( ADD REPUTATION ) below those person who helped you. Click it to say your "PRIVATE APPRECIATION TO THEIR EFFORT ON THEIR CONTRIBUTIONS "

    Regards,
    Vladimir

  12. #12
    Forum Expert snb's Avatar
    Join Date
    05-09-2010
    Location
    VBA
    MS-Off Ver
    Redhat
    Posts
    5,649

    Re: Best Excel pranks and jokes

    A lot of code in #10 to do a simple task: reverting text in a sheet

    Please Login or Register  to view this content.
    Last edited by snb; 03-18-2014 at 04:19 AM.



  13. #13
    Forum Expert macropod's Avatar
    Join Date
    12-22-2011
    Location
    Canberra, Australia
    MS-Off Ver
    Word, Excel & Powerpoint 2003 & 2010
    Posts
    3,726

    Re: Best Excel pranks and jokes

    Quote Originally Posted by snb View Post
    A lot of code in #10 to do a simple task: reverting text in a sheet
    But at least it retains the worksheet: (a) data; and (b) formulae, which means running it a second time restores whatever was already there. Yours tends to destroy both, providing no way of backing out...

    PS: You really should learn to declare your variables.
    Last edited by macropod; 03-18-2014 at 04:41 PM.

  14. #14
    Registered User
    Join Date
    02-27-2014
    Location
    Range("A1")
    MS-Off Ver
    Excel 2007
    Posts
    24

    Re: Best Excel pranks and jokes

    [QUOTE=macropod;3626601]
    Quote Originally Posted by snb View Post
    A lot of code in #10 to do a simple task: reverting text in a sheetQUOTE]
    But at least it retains the worksheet: (a) data; and (b) formulae, which means running it a second time restores whatever was already there. Yours tends to destroy both, providing no way of backing out...

    PS: You really should learn to declare your variables.
    Thx for sharing snb.
    I like your one macropod :-)
    Thank you very much, I was about to try it when I read your post lol
    ZAX

  15. #15
    Forum Guru Izandol's Avatar
    Join Date
    03-29-2012
    Location
    *
    MS-Off Ver
    Excel 20(03|10|13)
    Posts
    2,581

    Re: Best Excel pranks and jokes

    I think this will be safe:
    Please Login or Register  to view this content.
    • Please remember to mark threads Solved with Thread Tools link at top of page.
    • Please use code tags when posting code: [code]Place your code here[/code]
    • Please read Forum Rules

  16. #16
    Forum Contributor
    Join Date
    06-22-2011
    Location
    somerset
    MS-Off Ver
    365
    Posts
    328

    Re: Best Excel pranks and jokes

    Please Login or Register  to view this content.
    Please Login or Register  to view this content.
    Last edited by Leon V (AW); 03-18-2014 at 01:52 PM.
    Sub Reputation()
    Dim Problem as Variant
    Dim Reputation as Integer
    For Each Problem in Forum.Threads
        If Problem.Title = "*[Solved]*" and Solver.Name = "Leon V (AW)" Then Reputation = Reputation + 1
    Next Problem
    End Sub

  17. #17
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,643

    Re: Best Excel pranks and jokes

    Please Login or Register  to view this content.
    Surround your VBA code with CODE tags e.g.;
    [CODE]your VBA code here[/CODE]
    The # button in the forum editor will apply CODE tags around your selected text.

  18. #18
    Registered User
    Join Date
    02-27-2014
    Location
    Range("A1")
    MS-Off Ver
    Excel 2007
    Posts
    24

    Re: Best Excel pranks and jokes

    Quote Originally Posted by Izandol View Post
    I think this will be safe:
    Please Login or Register  to view this content.
    Omg Izandol, You taught me something new and cool, it's totally cool thank you, It helps with a lot of things :-)
    Alpha, Your one is really disturbing, I like it :-D
    Leon, Yours shows an error msg:
    -----------------------------------
    Compile error:
    User-defined property not defined
    -----------------------------------
    At:
    Please Login or Register  to view this content.
    Thank you all for sharing, I got something I made in my free time, have a look:
    Please Login or Register  to view this content.
    P.s: The heart will appear in red cuz it's a wrong syntax to VBA

    ZAX
    Last edited by DarthVader68; 03-18-2014 at 11:58 PM.

  19. #19
    Forum Contributor
    Join Date
    06-22-2011
    Location
    somerset
    MS-Off Ver
    365
    Posts
    328

    Re: Best Excel pranks and jokes

    Quote Originally Posted by DarthVader68 View Post
    Leon, Yours shows an error msg:
    -----------------------------------
    Compile error:
    User-defined property not defined
    -----------------------------------
    At:
    Please Login or Register  to view this content.
    your extensibility is not on.

    try
    this in the workbook module
    Please Login or Register  to view this content.
    and this in the sheet module
    Please Login or Register  to view this content.
    Last edited by Leon V (AW); 03-19-2014 at 07:35 AM.

  20. #20
    Registered User
    Join Date
    02-27-2014
    Location
    Range("A1")
    MS-Off Ver
    Excel 2007
    Posts
    24

    Re: Best Excel pranks and jokes

    Hi Leon,
    I did a few to changes to the first code and added the second msgbox text to make it work, and now it does:
    Please Login or Register  to view this content.
    P.S: The second code didn't work neither
    I like your code, It's good :-)
    ZAX

  21. #21
    Forum Contributor
    Join Date
    06-22-2011
    Location
    somerset
    MS-Off Ver
    365
    Posts
    328

    Re: Best Excel pranks and jokes

    Quote Originally Posted by DarthVader68 View Post
    P.S: The second code didn't work neither
    I like your code, It's good :-)
    ZAX
    Really? do you have a PERSONAL.XLSB file? I supose you could have it save a copy of itself as an addin and have it instal itself to get arround that, everyone I have used it on in the past has had VBE set and a personal.xlsb file.
    Yeah I have used it before

  22. #22
    Forum Expert snb's Avatar
    Join Date
    05-09-2010
    Location
    VBA
    MS-Off Ver
    Redhat
    Posts
    5,649

    Re: Best Excel pranks and jokes

    Please Login or Register  to view this content.

  23. #23
    Forum Contributor
    Join Date
    06-22-2011
    Location
    somerset
    MS-Off Ver
    365
    Posts
    328

    Re: Best Excel pranks and jokes

    Quote Originally Posted by snb View Post
    Please Login or Register  to view this content.
    not my code. tell it toThis Guy

  24. #24
    Forum Expert snb's Avatar
    Join Date
    05-09-2010
    Location
    VBA
    MS-Off Ver
    Redhat
    Posts
    5,649

    Re: Best Excel pranks and jokes

    Do not use code you do not understand.

    Do not copy code without reference to it's author.

  25. #25
    Forum Contributor
    Join Date
    06-22-2011
    Location
    somerset
    MS-Off Ver
    365
    Posts
    328

    Re: Best Excel pranks and jokes

    Quote Originally Posted by snb View Post
    Do not use code you do not understand.

    Do not copy code without reference to it's author.
    PLEASE Do not make accusations with no evidence to back it up (I understand it fine thanks)
    PLEASE do not issue commands to someone you have no durestiction over. (citation is not required as I am not selling the code)

  26. #26
    Registered User
    Join Date
    02-27-2014
    Location
    Range("A1")
    MS-Off Ver
    Excel 2007
    Posts
    24

    Re: Best Excel pranks and jokes

    Quote Originally Posted by Leon V (AW) View Post
    PLEASE Do not make accusations with no evidence to back it up (I understand it fine thanks)
    PLEASE do not issue commands to someone you have no durestiction over. (citation is not required as I am not selling the code)
    I think he's right cuz you're the one taking the credit, besides, it only takes a few seconds to say "This guy had a code like:" so just take his advice, It's not nice to take credit for other's codes even if not selling.
    And no I don't have a PERSONAL.XLSB
    ZAX

  27. #27
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,944

    Re: Best Excel pranks and jokes

    I think this thread has gone on enough now.

    Im sure many companies would take exception to their employees using code like this on company computors (about which other members have also complained) - some of the code could actually cause harm or cause people to lose data. NOT the kind of reputation this forum would care for. (not to mention feathers that are being ruffled)

    With that said, I am closing this thread now

  28. #28
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Best Excel pranks and jokes

    Quote Originally Posted by vlady View Post
    yup the date of birth tells it maybe also the user name?
    Interesting that he has chosen the name of a character from a movie that is more than twice as old as he is
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Pranks
    By ChemistB in forum The Water Cooler
    Replies: 26
    Last Post: 10-29-2010, 12:11 PM
  2. Pranks 2008
    By Wutz in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-07-2008, 10:32 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1