+ Reply to Thread
Results 1 to 7 of 7

Locking the use of Macros from other Workbooks

Hybrid View

  1. #1
    Registered User
    Join Date
    08-09-2010
    Location
    Midlands
    MS-Off Ver
    Excel 2010
    Posts
    38

    Re: Locking the use of Macros from other Workbooks

    sorry, I'm on excel 2010 have just updated that aspect.

    I've locked the VBA project for viewing using a secure password, my problem largely resides in the fact that you can open a blank excel workbook, then open my document and run a simple
    sub Unhide_Sheets()
    Sheets(1).visible = xlsheetvisible
    Sheets(2).visible = xlsheetvisible
    Sheets(3).visible = xlsheetvisible
    end sub
    And by running that macro when my document is selected it'll unhide the sheets.

    Thanks
    Maudise

  2. #2
    Forum Expert Mordred's Avatar
    Join Date
    07-06-2010
    Location
    Winnipeg, Canada
    MS-Off Ver
    2007, 2010
    Posts
    2,787

    Re: Locking the use of Macros from other Workbooks

    Quote Originally Posted by Maudise View Post
    sorry, I'm on excel 2010 have just updated that aspect.

    I've locked the VBA project for viewing using a secure password, my problem largely resides in the fact that you can open a blank excel workbook, then open my document and run a simple
    sub Unhide_Sheets()
    Sheets(1).visible = xlsheetvisible
    Sheets(2).visible = xlsheetvisible
    Sheets(3).visible = xlsheetvisible
    end sub
    And by running that macro when my document is selected it'll unhide the sheets.

    Thanks
    Maudise
    I think you'll find that there is no way to completely stop someone from accessing sheets and code as you've just pointed out. The only saving grace is that most people that use Excel or other Office products, haven't got a clue regarding how to actually hack a workbook.
    If you're happy with someone's help, click that little star at the bottom left of their post to give them Reps.

    ---Keep on Coding in the Free World---

+ 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