+ Reply to Thread
Results 1 to 17 of 17

Checkbox MsgBox

  1. #1
    Forum Contributor
    Join Date
    02-05-2008
    Posts
    116

    Checkbox MsgBox

    Hi everyone

    Ive got some code that I hope somone can help me modify to do what I need It to do.
    Ive got numerous checkboxs that get ticked as options, I need to create a code that allows the following to take place: if 2 or more checkboxs from C58 to C66 are checked for a message box to appear.

    Then if the above is true and the user checks either C67 or C68 then another message box appears

    Can anyone help please?

    Many Thanks

    Denzil

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    Is C58 the name of the checkbox or a cell reference?
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  3. #3
    Forum Contributor
    Join Date
    02-05-2008
    Posts
    116
    Hi Roy

    C58 is the cell reference

    Many Thanks for response

    Denzil

  4. #4
    Forum Contributor
    Join Date
    02-05-2008
    Posts
    116
    -------bump-------

  5. #5
    Forum Contributor
    Join Date
    02-05-2008
    Posts
    116
    Can anyone help please?

  6. #6
    Forum Contributor
    Join Date
    02-05-2008
    Posts
    116
    Can anyone help or give me any advice please?

  7. #7
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    Your explanation isn't that clear, you might get more help if you attached an example workbook.

  8. #8
    Forum Contributor
    Join Date
    02-05-2008
    Posts
    116

    Thumbs up

    Ok Thanks for your advice

    Ive posted a short version of what I have

    Many Thanks

    Denzil
    Attached Files Attached Files

  9. #9
    Forum Contributor
    Join Date
    02-05-2008
    Posts
    116
    Can anyone help today please??

  10. #10
    Forum Contributor
    Join Date
    02-05-2008
    Posts
    116
    Im wondering if the following is possible:

    Ive got numerous checkboxs that get ticked as options. I need to create a code that allows the following to take place: if 2 or more checkboxs from C58 to C66 are checked for a message box to appear.

    Then if the above is true and the user checks either C67 or C68 then another message box appears

    Can anyone give me any advice or code to start me off please? anything would be a great help

    Many Thanks

    Denzil
    Attached Files Attached Files

  11. #11
    Forum Contributor Stuie's Avatar
    Join Date
    09-17-2006
    Location
    Suffolk, UK
    MS-Off Ver
    Excel 2003/2007
    Posts
    432
    Hi Denzil,

    I havnt got the code to hand at min as am a bit busy, but i would suggest that you chould make a global function that loops though the checkboxs and counts how many are checked and then take the nessecery actions.

    call the function from the click event for each of the checkboxs. and remember if you want to limit the checkboxs available to click you can always disable and enable them.

    hope this helps
    There are only 10 types of people in the world:
    Those who understand binary, and those who don't!

  12. #12
    Forum Contributor
    Join Date
    02-05-2008
    Posts
    116
    Hello Stuie

    Thanks for your reply,

    What you described sounds great, the only problem is my lack of knowledge in excel, im bit of a novice, any chance of an example?

    Thanks again

    Denzil

  13. #13
    Forum Contributor Stuie's Avatar
    Join Date
    09-17-2006
    Location
    Suffolk, UK
    MS-Off Ver
    Excel 2003/2007
    Posts
    432
    yea sure,

    say i have 3 check boxs {ck1, ck2, ck3}

    now if ck1 and ck2 are clicked then ck3 needs to be enabled else its disabled (hope im making sense )

    my code could be

    Please Login or Register  to view this content.
    this is a very brief and simple example

  14. #14
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    I've added a formula and code to check this.
    Attached Files Attached Files

  15. #15
    Forum Contributor
    Join Date
    02-05-2008
    Posts
    116

    Thumbs up

    Thats just what I wanted!!

    Thankyou both for your help

    Much appreciated

    Denzil

  16. #16
    Forum Contributor Stuie's Avatar
    Join Date
    09-17-2006
    Location
    Suffolk, UK
    MS-Off Ver
    Excel 2003/2007
    Posts
    432
    No probs Denzil, glad to help

  17. #17
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    Glad you got the solution, which did you use?

+ 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