+ Reply to Thread
Results 1 to 3 of 3

Don't open or use workbook unless macros are turned on?

  1. #1
    Registered User
    Join Date
    11-06-2008
    Location
    Illinois
    Posts
    63

    Don't open or use workbook unless macros are turned on?

    Hello,

    Is there a way to prevent a workbook from opening unless macros are allowed?

    Thanks,

    Nick
    Last edited by Nickster64; 12-10-2008 at 04:53 PM.

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678
    In a word, no.

    You can approximate it as follows:

    Make all sheets except a splash-screen sheet VeryHidden. If the user doesn't enable macros, all the user will see is the splash screen. If macros are enabled, code makes the user jump through whatever security hoops are required before unhiding selected sheets.

    In the beforeSave event, all sheets except the splash screen are re-hidden, the file is saved, and the current environment is restored following the save.

    Protect the VBA project.
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Registered User
    Join Date
    11-06-2008
    Location
    Illinois
    Posts
    63
    This is a great method... thanks!

    -nick

+ 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