+ Reply to Thread
Results 1 to 4 of 4

Where to Put Common Code

Hybrid View

  1. #1
    Registered User
    Join Date
    04-04-2007
    Posts
    17

    Where to Put Common Code

    I'm using a template to create Workbooks on demand. I would like the functionality of the newly created workbooks to reside somewhere outside them. This would allow me to change / upgrade the functionality as needed.

    I've succeded in doing so using another workbook that is called up when the template or one of its decendents is opened. The problem with this is that I don’t want this source of code and page templates to be visible to the users of the system. Is there anyway to achieve this? Can I make some of its pages hidden? If so how?
    --
    John

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,259
    Hello John,

    OPen your template using Excel. Open the VBE and go to Tools > VBAProject Properties... > Protection (tab). Check "Lock Project for Viewing" and set a password.

    Sincerely,
    Leith Ross

  3. #3
    Registered User
    Join Date
    04-04-2007
    Posts
    17
    Thanks Leith.

    This helps. They can still see the spreadsheet but can't access the code. When it opens as part of the project it opens read-only, so no one can really mess with the visual side of it either.

  4. #4
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,259
    Hello John,

    You could hide all the sheets before you protect the workbook.

    Sincerely,
    Leith Ross

+ 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