+ Reply to Thread
Results 1 to 3 of 3

If you don't enable macros, I won't show you my workbook..

  1. #1
    Registered User
    Join Date
    04-29-2005
    Posts
    45

    If you don't enable macros, I won't show you my workbook..

    Does anyone have a creative idea for preventing a user from using a workbook unless macros are enabled? Is there a way to set up a code that reveals all information in a workbook....in other words, if macros are enabled, then the workbook will be revealed! Otherwise, you see a page that just says to start over again and enable macros the next time.


    You get the idea. Great, thanks!

  2. #2
    Forum Expert swatsp0p's Avatar
    Join Date
    10-07-2004
    Location
    Kentucky, USA
    MS-Off Ver
    Excel 2010
    Posts
    1,545
    Have code that HIDE the sheets (xlveryhidden) as Private Sub Workbook_BeforeClose(Cancel As Boolean). Have code that unhides the sheets when opened as Private Sub Workbook_Open(). If macros are disabled, the sheets will be hidden. Leave only one sheet unhidden that warns the user to close/reopen with macros enabled (maybe code this sheet to be hidden when opened)

    HTH

    Bruce
    Last edited by swatsp0p; 04-29-2005 at 11:25 AM.
    Bruce
    The older I get, the better I used to be.
    USA

  3. #3
    Registered User
    Join Date
    04-29-2005
    Posts
    45
    Ahh, good idea. I should be able to get the code right for that.

    Thanks!

+ 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