+ Reply to Thread
Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    09-26-2008
    Location
    Richmond
    Posts
    56

    Protected Workbook with links too complicated to open

    I have 7 Individual sales reports that all link into a summary report and vice versa - the summary links the quotas into the individual sales reports. They are all stored on our server, but have to be protected so only myself, the manager and the particular salesperson who uses it can open it. The sheets also have to be protected so the user doesn't screw up any of my formulas. I know about protecting the sheets, but when I protect the workbooks so you have to have a password to open it, each time you open the summary report you have to enter all the passwords for each report that links into it. Is there a way around this so that the reports automatically link without having to input passwords?

  2. #2
    Forum Moderator Richard Buttrey's Avatar
    Join Date
    02-15-2008
    Location
    Grappenhall, UK
    MS-Off Ver
    Excel for Windows & Mac - all versions.
    Posts
    5,829

    Re: Protected Workbook with links too complicated to open

    Hi, and welcome to the forum

    It sounds like you need to use a VBA procedure to open the workbooks. If you do this you can include the password in the code (or prompt for it once if you prefer), and have the macro open the workbooks.

    HTH
    Richard Buttrey

    If this was useful then please rate it appropriately.

    Click the small star icon at the bottom left of my post.

  3. #3
    Registered User
    Join Date
    09-26-2008
    Location
    Richmond
    Posts
    56

    Question Re: Protected Workbook with links too complicated to open

    I thought about that, but can you do that with multiple passwords? i.e. the summary report has 7 different sheets that link into it (and this number could grow in the future if we add new sales people) that would all need to be password protected. Can you help me with how to do this? Thanks!

  4. #4
    Registered User
    Join Date
    09-26-2008
    Location
    Richmond
    Posts
    56

    Re: Protected Workbook with links too complicated to open

    I thought about that, but can you do that with multiple passwords? i.e. the summary report has 7 different sheets that link into it (and this number could grow in the future if we add new sales people) that would all need to be password protected. Can you help me with how to do this? Thanks!

  5. #5
    Forum Moderator Richard Buttrey's Avatar
    Join Date
    02-15-2008
    Location
    Grappenhall, UK
    MS-Off Ver
    Excel for Windows & Mac - all versions.
    Posts
    5,829

    Re: Protected Workbook with links too complicated to open

    Hi,

    One way, provided you have a reference somewhere in the workbook file name to the sales person's name or staff number etc., would be to hold a table of all the names (or indeed the complete filename for each person), and associated passwords in the summary workbook.

    Then in VBA you would use the relevant string from the filename you are trying to open to set a password variable, and use this variable in the
    Password = variable
    instruction

    Rgds
    Richard Buttrey

    If this was useful then please rate it appropriately.

    Click the small star icon at the bottom left of my post.

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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.2.0