Consulting

Results 1 to 10 of 10

Thread: Sleeper: Allow users to edit range - problem

  1. #1

    Sleeper: Allow users to edit range - problem

    Hi, striclty not a vba question (yet) , but I have an odd problem with password protecting an excel sheet.

    I have a pass protected sheet with a couple of ranges that can be unlocked with a (different) password for each range. However some pairs of ranges are unlocked by inputting the right pass for only 1 of those ranges.

    ex.

    Range Password
    A             12
    B             34
    C             56
    D             78

    I have a situation similar to this: range A is unlocked with pass '12' , but instead of the pass only unlocking range A, it also unlocks range C and vica versa with the pass for C.

    How is this possible? It seems like a bug to me. Anyone heard about similar problems?

    Thanks for any info on this.
    Last edited by splashscreen; 07-20-2005 at 01:23 PM. Reason: typo

  2. #2
    Moderator VBAX Guru Ken Puls's Avatar
    Joined
    Aug 2004
    Location
    Nanaimo, BC, Canada
    Posts
    4,001
    Location
    Hi Splashscreen, and welcome to VBAX!

    I'm intrigued by your question... exactly how are you protecting/unprotecting specific ranges with different passwords? In my experience, (and I learn something new every day,) worksheet protection is just that... worksheet level. I've never known a way to protect different ranges on a sheet with different passwords.
    Ken Puls, CMA - Microsoft MVP (Excel)
    I hate it when my computer does what I tell it to, and not what I want it to.

    Learn how to use our KB tags! -||- Ken's Excel Website -||- Ken's Excel Forums -||- My Blog -||- Excel Training Calendar

    This is a shameless plug for my new book "RibbonX - Customizing the Office 2007 Ribbon". Find out more about it here!

    Help keep VBAX clean! Use the 'Thread Tools' menu to mark your own threads solved!





  3. #3

  4. #4
    Moderator VBAX Guru Ken Puls's Avatar
    Joined
    Aug 2004
    Location
    Nanaimo, BC, Canada
    Posts
    4,001
    Location
    Heya,

    Very cool, thanks! Somehow I never saw that menu option. Strange the things that you don't notice when a new version is released...

    I set up everything using the exact passwords that you have, and couldn't replicate your issue. Are you sure that the passwords are different, and that you haven't selected both ranges when you set up your ranges in the protection screens?
    Ken Puls, CMA - Microsoft MVP (Excel)
    I hate it when my computer does what I tell it to, and not what I want it to.

    Learn how to use our KB tags! -||- Ken's Excel Website -||- Ken's Excel Forums -||- My Blog -||- Excel Training Calendar

    This is a shameless plug for my new book "RibbonX - Customizing the Office 2007 Ribbon". Find out more about it here!

    Help keep VBAX clean! Use the 'Thread Tools' menu to mark your own threads solved!





  5. #5
    I'm certain that I selected only the intended ranges. I'm fairly certain that all the passwords are unique (generated a string of random numbers for each pass). Though I can't check atm because the actual file itself is in my account at work.

  6. #6
    Moderator VBAX Guru Ken Puls's Avatar
    Joined
    Aug 2004
    Location
    Nanaimo, BC, Canada
    Posts
    4,001
    Location
    Hmm...

    Attached is a copy of what I put together to test. Used your passwords for the ranges (they're coloured). Password to unprotect the sheet is blank (no characters).
    Ken Puls, CMA - Microsoft MVP (Excel)
    I hate it when my computer does what I tell it to, and not what I want it to.

    Learn how to use our KB tags! -||- Ken's Excel Website -||- Ken's Excel Forums -||- My Blog -||- Excel Training Calendar

    This is a shameless plug for my new book "RibbonX - Customizing the Office 2007 Ribbon". Find out more about it here!

    Help keep VBAX clean! Use the 'Thread Tools' menu to mark your own threads solved!





  7. #7
    VBAX Regular
    Joined
    Jul 2004
    Posts
    15
    Location
    I too cannot duplicate the problem. And this was also new to me. Them pre-shrunk menus are not always such a good deal - I'd never even seen that menu option. Maybe time to switch that option off...
    Greg

  8. #8
    Moderator VBAX Guru Ken Puls's Avatar
    Joined
    Aug 2004
    Location
    Nanaimo, BC, Canada
    Posts
    4,001
    Location
    Quote Originally Posted by Greg T
    Them pre-shrunk menus are not always such a good deal - I'd never even seen that menu option. Maybe time to switch that option off...
    LOL! Unfortunately, I can't use that excuse. That was the very first thing I figured out how to stop in 2000. Why anyone thought it was a good idea is beyond me. Maybe for someone who only uses 20 commands, but if you really use a program to half of it's potential? I found it maddening!
    Ken Puls, CMA - Microsoft MVP (Excel)
    I hate it when my computer does what I tell it to, and not what I want it to.

    Learn how to use our KB tags! -||- Ken's Excel Website -||- Ken's Excel Forums -||- My Blog -||- Excel Training Calendar

    This is a shameless plug for my new book "RibbonX - Customizing the Office 2007 Ribbon". Find out more about it here!

    Help keep VBAX clean! Use the 'Thread Tools' menu to mark your own threads solved!





  9. #9
    Ok, thx. I'm gonna have another look at the file again tomorrow. I'll keep you uptodate

  10. #10
    Right. I have checked the original file and there are no double ranges defined and all passwords are unique.

    I've played around with it a bit and found that if you change the pass of one of the conjoined ranges it does stop unlocking the other range, but switches to just unlocking another row..

    But,
    I have found a workaround for the situation and that is to define passwords that only contain letters. This way there are no mutually unlocking ranges present in the locked sheet.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •