+ Reply to Thread
Results 1 to 4 of 4

Message Box on load

  1. #1
    Registered User
    Join Date
    06-09-2009
    Location
    Australia
    MS-Off Ver
    Excel 2007
    Posts
    88

    Message Box on load

    I'm attempting to ensure users enable macros when using my database. Because of this I thought the best way, would be to display a message box on load but to do that with code you need macros So any other thoughts/ideas?

    EDIT: This is in 2007/2010
    Last edited by dextras; 04-19-2010 at 12:17 AM.

  2. #2
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Message Box on load

    If this was at all possible it would be extremely dangerous. What would there be to stop malcious code?

    You could lock some of the workbooks properties, make sheets very hidden, etc and perhaps use a front sheet to say that the book needs macros to function properly.

    However I for one would be very suspicious of any workbook that came with such a message, unless I knew the source or originator.

    Cheers

    P.S. You might find that this type of question is in breach of forum rules regarding security, I'm not sure though.
    Last edited by Marcol; 04-19-2010 at 12:55 AM.

  3. #3
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Message Box on load

    You can only display a message box with a macro,this won't run unless macros are enabled.
    ForceUsersEnableMacros.zip
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  4. #4
    Registered User
    Join Date
    06-09-2009
    Location
    Australia
    MS-Off Ver
    Excel 2007
    Posts
    88

    Re: Message Box on load

    It's not illegal in that it just notifies the user that they need to enable the macro. I'm on a school computer at the moment so can't download that file but will try when I get home. It's for an assignment and my teacher may not be smart enough to realise she needs to enable macros

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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