close

I need to set up a Permissions or Security list and would like to use check
boxes.
The worksheet would have lets say 4 columns or 4 check boxes each pertaining
to a specific group. A B C amp; D
exp. If group A has permission the B C amp; D do.
If group C has persmission then D will but A amp; B will not.
I would like to check A and the rest will fall in but if I check C I only
want D to fall in and A amp; B will remain unchecked.
If you understand this at all please let me know your ideas or thoughts on
how this is achived.


Please try the attached.

It uses the calculate event to set the values of the other check
boxes.

Hope this helps.

Martin -------------------------------------------------------------------
|Filename: Book1.zip |
|Download: www.excelforum.com/attachment.php?postid=4678 |
-------------------------------------------------------------------

--
mrice

Reserach Scientist with many years of spreadsheet development experience
------------------------------------------------------------------------
mrice's Profile: www.excelforum.com/member.php...oamp;userid=10931
View this thread: www.excelforum.com/showthread...hreadid=533928Thank you so much, that is what I am looking for but I do not understand the
quot;calculate eventquot;. How do I get there?
I am not sure I am asking the right question.
I want to completely understand so I can add more options and groups but I
would not be able to right now unless I know how to create it myself.
Also..
I accidently clicked No when asked if this response helps, but it really
does. I hope I can fix that.

quot;mricequot; wrote:

gt;
gt; Please try the attached.
gt;
gt; It uses the calculate event to set the values of the other check
gt; boxes.
gt;
gt; Hope this helps.
gt;
gt; Martin
gt;
gt;
gt; -------------------------------------------------------------------
gt; |Filename: Book1.zip |
gt; |Download: www.excelforum.com/attachment.php?postid=4678 |
gt; -------------------------------------------------------------------
gt;
gt; --
gt; mrice
gt;
gt; Reserach Scientist with many years of spreadsheet development experience
gt; ------------------------------------------------------------------------
gt; mrice's Profile: www.excelforum.com/member.php...oamp;userid=10931
gt; View this thread: www.excelforum.com/showthread...hreadid=533928
gt;
gt;

Martin -
I figured out what that ment and how to work with it.
I now have the problem of entering more then one line of selections.
How do you enter the code in order to keep each selection group seperate?
How do you end a group and start a new?
I may need to learn a lot more about visual basics.
Thank you
Amy

quot;blueegyptquot; wrote:

gt; Thank you so much, that is what I am looking for but I do not understand the
gt; quot;calculate eventquot;. How do I get there?
gt; I am not sure I am asking the right question.
gt; I want to completely understand so I can add more options and groups but I
gt; would not be able to right now unless I know how to create it myself.
gt; Also..
gt; I accidently clicked No when asked if this response helps, but it really
gt; does. I hope I can fix that.
gt;
gt; quot;mricequot; wrote:
gt;
gt; gt;
gt; gt; Please try the attached.
gt; gt;
gt; gt; It uses the calculate event to set the values of the other check
gt; gt; boxes.
gt; gt;
gt; gt; Hope this helps.
gt; gt;
gt; gt; Martin
gt; gt;
gt; gt;
gt; gt; -------------------------------------------------------------------
gt; gt; |Filename: Book1.zip |
gt; gt; |Download: www.excelforum.com/attachment.php?postid=4678 |
gt; gt; -------------------------------------------------------------------
gt; gt;
gt; gt; --
gt; gt; mrice
gt; gt;
gt; gt; Reserach Scientist with many years of spreadsheet development experience
gt; gt; ------------------------------------------------------------------------
gt; gt; mrice's Profile: www.excelforum.com/member.php...oamp;userid=10931
gt; gt; View this thread: www.excelforum.com/showthread...hreadid=533928
gt; gt;
gt; gt;


To keep groups separate, you need to duplicate the code with the same
macro using (say) C5- C8 and opposed to C1-C4. There is only one
worksheet_calculate event to play with.

Dim Calculating As BooleanPrivate Sub Worksheet_Calculate()
If Calculating = True Then Exit SubIf Range(quot;C1quot;).Value = True Then
Calculating = True
Range(quot;C2quot;) = True
Range(quot;C3quot;) = True
Range(quot;C4quot;) = True
Calculating = False
Exit Sub
End If

If Range(quot;C2quot;).Value = True Then
Calculating = True
Range(quot;C3quot;) = True
Range(quot;C4quot;) = True
Calculating = False
Exit Sub
End If

If Range(quot;C3quot;).Value = True Then
Calculating = True
Range(quot;C4quot;) = True
Calculating = False
Exit Sub
End If

'second block

If Range(quot;C5quot;).Value = True Then
Calculating = True
Range(quot;C6quot;) = True
Range(quot;C7quot;) = True
Range(quot;C8quot;) = True
Calculating = False
Exit Sub
End If

If Range(quot;C6quot;).Value = True Then
Calculating = True
Range(quot;C7quot;) = True
Range(quot;C8quot;) = True
Calculating = False
Exit Sub
End If

If Range(quot;C7quot;).Value = True Then
Calculating = True
Range(quot;C8quot;) = True
Calculating = False
Exit Sub
End If

'further blocks go here

End SubDon't worry about clicking the No button - --
mrice

Research Scientist with many years of spreadsheet development experience
------------------------------------------------------------------------
mrice's Profile: www.excelforum.com/member.php...oamp;userid=10931
View this thread: www.excelforum.com/showthread...hreadid=533928

arrow
arrow
    全站熱搜
    創作者介紹
    創作者 software 的頭像
    software

    software

    software 發表在 痞客邦 留言(0) 人氣()