+ Reply to Thread
Results 1 to 74 of 74

Select-Case with several check box's instead of IF'S stats

  1. #1
    Forum Contributor
    Join Date
    07-20-2015
    Location
    Covilhã
    MS-Off Ver
    2010
    Posts
    516

    Select-Case with several check box's instead of IF'S stats

    Hello community,

    I am struggling with a problem, i need/want to swap this userform code from IF's statements for a Select Case one.
    I need to analize which checkbox's are checked and then select that respective range and export it to pdf.

    I need help to transform all this if's to select case, and if possible soon that case is detected, go check the defined range for each variable and use that ranges to export.

    Please feel free to ask for more information or details, this is a issue difficult for me to explain better.

    See file in Attach
    Attached Files Attached Files
    Last edited by brainzlp; 09-06-2015 at 04:23 PM.

  2. #2
    Forum Contributor
    Join Date
    07-20-2015
    Location
    Covilhã
    MS-Off Ver
    2010
    Posts
    516

    Select-Case with several check box's instead of IF'S stats

    Hello community,

    I am struggling with a problem, i need/want to swap this userform code from IF's statements for a Select Case one.
    I need to analize which checkbox's are checked and then select that respective range and export it to pdf.

    I need help to transform all this if's to select case, and if possible soon that case is detected, go check the defined range for each variable and use that ranges to export.

    Please feel free to ask for more information or details, this is a issue difficult for me to explain better.

    See file in Attach
    Attached Files Attached Files
    Last edited by brainzlp; 09-04-2015 at 04:14 AM.

  3. #3
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: Select-Case with several check box's instead of IF'S stats

    Did you intend for the attached workbook to contain checkboxes? or VBA code? or any content at all?
    (because it doesn't)
    Ron
    Former Microsoft MVP - Excel (2006 - 2015)
    Click here to see the Forum Rules

  4. #4
    Forum Expert mikerickson's Avatar
    Join Date
    03-30-2007
    Location
    Davis CA
    MS-Off Ver
    Excel 2011
    Posts
    6,229

    Re: Select-Case with several check box's instead of IF'S stats

    There's no code in your attached .xlsx file.

    As a general reply to your situation, consider a user form with three checkboxes.
    Please Login or Register  to view this content.
    If you have lots of checkboxes, code like this can be used
    Please Login or Register  to view this content.
    _
    ...How to Cross-post politely...
    ..Wrap code by selecting the code and clicking the # or read this. Thank you.

  5. #5
    Forum Contributor
    Join Date
    07-20-2015
    Location
    Covilhã
    MS-Off Ver
    2010
    Posts
    516

    Re: Select-Case with several check box's instead of IF'S stats

    This is a simply file so you can only see the VBA code as is.
    There is data in the master file.

    I already have the checkbox named: "Impressão , Confeção , Produção , Todas, Faturação"
    I need to check which on of them are true. and then do something

  6. #6
    Forum Contributor
    Join Date
    07-20-2015
    Location
    Covilhã
    MS-Off Ver
    2010
    Posts
    516

    Re: Select-Case with several check box's instead of IF'S stats

    Sorry for the confusion, I've updated the correct file so you can help me out.

    I need to change the if statments and check the values of the checkbox, when detected the true values then select the respective range and export to pdf.HELP-SELECT CASE PROBLEM.xlsm
    Last edited by brainzlp; 09-04-2015 at 04:13 AM.

  7. #7
    Forum Contributor
    Join Date
    07-20-2015
    Location
    Covilhã
    MS-Off Ver
    2010
    Posts
    516

    Re: Select-Case with several check box's instead of IF'S stats

    I've atached the correct file . Sorry for the confusion, forgOt to give access to macros
    Last edited by brainzlp; 09-03-2015 at 12:11 PM.

  8. #8
    Forum Expert mikerickson's Avatar
    Join Date
    03-30-2007
    Location
    Davis CA
    MS-Off Ver
    Excel 2011
    Posts
    6,229

    Re: Select-Case with several check box's instead of IF'S stats

    Actualy you haven't attached any file with macros, they are all .xlsx files.

    Have you tried something like my approach which treats each checkbox like the digit of a binary number.

  9. #9
    Forum Contributor
    Join Date
    07-20-2015
    Location
    Covilhã
    MS-Off Ver
    2010
    Posts
    516

    Re: Select-Case with several check box's instead of IF'S stats

    Quote Originally Posted by mikerickson View Post
    Actualy you haven't attached any file with macros, they are all .xlsx files.

    Have you tried something like my approach which treats each checkbox like the digit of a binary number.
    HELP-SELECT CASE PROBLEM.xlsm

    Sorry again, there is the correct file for you to see. Check the Userform code.

    I haven't tried yours cuz i really want you to see what i have, cuz i need the result to go select the range i define.
    Instead of manually introduce 1 by 1.

    But your binary number code may probably work, but please check and let me know if you can help me with the second problem all in 1.

    Thanks in advance
    Last edited by brainzlp; 09-04-2015 at 04:43 AM.

  10. #10
    Forum Contributor
    Join Date
    07-20-2015
    Location
    Covilhã
    MS-Off Ver
    2010
    Posts
    516

    Re: Select-Case with several check box's instead of IF'S stats

    Can someone help me?

    I have to look for all combination within at least 5 checkboxs, and according to that selection export a specific range of a worksheet to PDF.
    Let me know if you have any more hints or solutions please. it's important to get this working.

  11. #11
    Forum Contributor
    Join Date
    07-20-2015
    Location
    Covilhã
    MS-Off Ver
    2010
    Posts
    516
    Quote Originally Posted by mikerickson View Post
    There's no code in your attached .xlsx file.

    As a general reply to your situation, consider a user form with three checkboxes.
    Please Login or Register  to view this content.
    If you have lots of checkboxes, code like this can be used
    Please Login or Register  to view this content.
    Hello Mr.

    Can you please help me according to my situation and needs? Have a nice weekend

  12. #12
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Select-Case with several check box's instead of IF'S stats

    Hi brainzlp

    No File attached...
    John

    If you have issues with Code I've provided, I appreciate your feedback.

    In the event Code provided resolves your issue, please mark your Thread as SOLVED.

    If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.

  13. #13
    Forum Contributor
    Join Date
    07-20-2015
    Location
    Covilhã
    MS-Off Ver
    2010
    Posts
    516

    Re: Select-Case with several check box's instead of IF'S stats

    Quote Originally Posted by jaslake View Post
    Hi brainzlp

    No File attached...
    Sorry, my bad.
    Please check again. hope you can help me out it's really important

    HELP-SELECT CASE PROBLEM.xlsm

  14. #14
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Select-Case with several check box's instead of IF'S stats

    From what I can see/understand you can't use Select Case for this.

    Perhaps if you explained further, in simple terms, what you are trying to do we could help further.
    If posting code please use code tags, see here.

  15. #15
    Forum Contributor
    Join Date
    07-20-2015
    Location
    Covilhã
    MS-Off Ver
    2010
    Posts
    516
    Quote Originally Posted by Norie View Post
    From what I can see/understand you can't use Select Case for this.

    Perhaps if you explained further, in simple terms, what you are trying to do we could help further.
    What i am trying to do is:

    Each checkbox is associated witha range, according do checkboxs values i need to export to pdf. For example:

    Checkbox1 = range(A1:D5)
    Checkbox2 = range(A6:A9)
    Checkbox3 = range(A10:D20)

    If only checkbox value is true then export to pdf its range. If all are checked export from A1:D20.. Of 2 and 3 are checked then export A6:D20

    If for example 1 and 3 i need to export (A1:D5,A10:D20)

    I need for now 6 checkbox.

    Please help me out. You can check in the attach this eexample with if statements. I want to put that depending on checkbox values and then if true put in export range.

    Hope to hear from you asap

  16. #16
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Select-Case with several check box's instead of IF'S stats

    Hi brainzip

    Seems to me you'll need cascading Select Case Statements as you have multiple If Statements. What's the gain?

  17. #17
    Forum Contributor
    Join Date
    07-20-2015
    Location
    Covilhã
    MS-Off Ver
    2010
    Posts
    516

    Re: Select-Case with several check box's instead of IF'S stats

    As you can see in the attach:
    For each checkbox value TRUE, the early defined ranged is exported for a defined direction. Thats what i want to do

  18. #18
    Forum Contributor
    Join Date
    07-20-2015
    Location
    Covilhã
    MS-Off Ver
    2010
    Posts
    516
    Quote Originally Posted by jaslake View Post
    Hi brainzip

    Seems to me you'll need cascading Select Case Statements as you have multiple If Statements. What's the gain?
    I suggest select case cuz it seems better than if statements but what i really want is to simplify the code cuz i will have to increment more checkbox. Thats why i just wanted to check the checkboxs true values yhan export that multiarea range

  19. #19
    Forum Expert Doc.AElstein's Avatar
    Join Date
    05-23-2014
    Location
    '_- Germany >Outside Building things.... Mostly
    MS-Off Ver
    Office 2003 2007 2010 PC but Not mac. XP and Vista mostly, sometimes Win 7
    Posts
    3,618

    Re: Select-Case with several check box's instead of IF'S stats

    Quote Originally Posted by jaslake View Post
    Hi brainzip

    Seems to me you'll need cascading Select Case Statements as you have multiple If Statements. What's the gain?
    Hi jaslake
    . You may be able to help if you take further the idea from mikerickson.
    . If I can try to translate for you:
    Brain____ was basically OK I think with mikerickson idea Here
    http://www.excelforum.com/excel-prog...ml#post4180491
    . But he would like you to write the code to actually apply to his case. ( Do it all for him ) . I was just taking a look at it to try and help. . If it was a “normal code” I think I could have helped. But as I have no idea at all and no experience with User Forms I was having a bit of difficulty changing the code of Brain___ to use that basic idea. But it looks like it would be simple to adapt if you know your way around User Forms.
    . Maybe that is a little help.
    . I think he would simply like to use Select case rather than multiple If's as he may have many Check boxex.I believe mikerickson suggested a soluion for that, but as I mentioned I am struggling a bit to understand that due to my lack of experience there.
    Alan

    P.s. I would not bother to say anything to Brain____ about Duplicate Posting. You will totally confuse him. He is a nice lad, does try, and feeds back always. I hope we can help him
    Last edited by Doc.AElstein; 09-06-2015 at 05:15 PM.
    '_- Google first, like this _ site:ExcelForum.com Gamut
    Use Code Tags: Highlight code; click on the # icon above,
    Post screenshots COPYABLE to a Spredsheet; NOT IMAGES PLEASE
    http://www.excelforum.com/the-water-...ml#post4109080
    https://app.box.com/s/gjpa8mk8ko4vkwcke3ig2w8z2wkfvrtv
    http://excelmatters.com/excel-forums/ ( Scrolll down to bottom )

  20. #20
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,936

    Re: Select-Case with several check box's instead of IF'S stats

    brainzip, please do not post teh same thread/question more than once. Because you have replies on both threads, I will merge them for you
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  21. #21
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Select-Case with several check box's instead of IF'S stats

    Is this a duplicate post/thread?

  22. #22
    Forum Expert Doc.AElstein's Avatar
    Join Date
    05-23-2014
    Location
    '_- Germany >Outside Building things.... Mostly
    MS-Off Ver
    Office 2003 2007 2010 PC but Not mac. XP and Vista mostly, sometimes Win 7
    Posts
    3,618

    Re: Select-Case with several check box's instead of IF'S stats

    Quote Originally Posted by Norie View Post
    Is this a duplicate post/thread?
    It was
    . But i hope we can help him

  23. #23
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,936

    Re: Select-Case with several check box's instead of IF'S stats

    Norie, I have merged them

  24. #24
    Forum Expert Doc.AElstein's Avatar
    Join Date
    05-23-2014
    Location
    '_- Germany >Outside Building things.... Mostly
    MS-Off Ver
    Office 2003 2007 2010 PC but Not mac. XP and Vista mostly, sometimes Win 7
    Posts
    3,618

    Re: Select-Case with several check box's instead of IF'S stats

    Quote Originally Posted by Doc.AElstein View Post
    .......
    P.s. I would not bother to say anything to Brain____ about Duplicate Posting. You will totally confuse him. He is a nice lad, does try, and feeds back always. I hope we can help him
    http://www.excelforum.com/excel-prog...ml#post4182833

    . Tell him again.... 3 Threads and counting
    Last edited by Doc.AElstein; 09-06-2015 at 05:38 PM.

  25. #25
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Select-Case with several check box's instead of IF'S stats

    @Doc

    As we've seen, this is a Double Post, I'm CERTAIN Forum generated. Mike's Post was not available to me when I posted. The Double Posts have since been consolidated. Had I known Mike was on the issue I'd have followed the Thread and left it in Mike's quite capable hands.

  26. #26
    Forum Contributor
    Join Date
    07-20-2015
    Location
    Covilhã
    MS-Off Ver
    2010
    Posts
    516

    Re: Select-Case with several check box's instead of IF'S stats

    Hello everyone.

    Sorry for the duplicate posts, not on purpose, just wanted to reform my problem to explain better my point.
    Which doesn't have to me in Select Case method, just wanted to run a loop for example to check which checkbox's are Checked and then export it's range area defined.

    would like you to help me doing this code:
    I want a code that:
    1st: I define variable ranges for each checkbox
    2nd:For each Checkbox Value true, then Get in a Multiarea range to Export
    3rd: Export that area range to pdf

    Check the excel file in the Userform code, with it statements but i would like to not use IF statmentes cuz i will have to introduce more checkbox's sooner or later.


    * Sorry again, Not really my intention to bother you guys, just need some help from someone expert in this. Not going to happen Again.
    Thanks in advance for all your help.
    Attached Files Attached Files

  27. #27
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Select-Case with several check box's instead of IF'S stats

    @Ford

    This didn't get merged. I wish the OP to know the consequences of his/her actions.

    Hi brainzip

    Some friendly advice (besides, it's against Forum Rules).

    Please do not post duplicate Threads. You have multiple Forum Contributors working on the same issue. The consequence is
    you'll get some of us a bit upset and be put on our Ignore List.

    Not a good practice if you wish help.

  28. #28
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,936

    Re: Select-Case with several check box's instead of IF'S stats

    I have closed the 3rd thread, hopfully the OP will continue here

    edit: John, I merged the 1st 2 - they both had replies, and then closed the 3rd one

  29. #29
    Forum Expert Doc.AElstein's Avatar
    Join Date
    05-23-2014
    Location
    '_- Germany >Outside Building things.... Mostly
    MS-Off Ver
    Office 2003 2007 2010 PC but Not mac. XP and Vista mostly, sometimes Win 7
    Posts
    3,618

    Re: Select-Case with several check box's instead of IF'S stats

    Quote Originally Posted by jaslake View Post
    ... I'm CERTAIN Forum generated. Mike's Post was not available to me when I posted. The Double Posts have since been consolidated.
    . There have been many Duplicate posts just recently, indeed I reported them and mentioned in several Threads already, but usually they are identical and are posted within a short space of time, almost immediately. The start of the two Threads were different and there was about a day between so , I am surprised that this was the case here. ( And he has just made a new one!! )

    . Anyway I am struggling at this line in Mike's code

    Please Login or Register  to view this content.

    . As it fails to find any object i try…but OK leave it to Mike ( If he is notified of responses by E-Mail he should have a few from all over the place!!! As FDibbins is merging!! – And If E-mail notification is working – that too and many other things with the Excel Forum Software have not been just recently )
    .
    . Sorry if i confused the issue

    Alan

  30. #30
    Forum Contributor
    Join Date
    07-20-2015
    Location
    Covilhã
    MS-Off Ver
    2010
    Posts
    516

    Re: Select-Case with several check box's instead of IF'S stats

    Quote Originally Posted by jaslake View Post
    @Ford

    This didn't get merged. I wish the OP to know the consequences of his/her actions.

    Hi brainzip

    Some friendly advice (besides, it's against Forum Rules).

    Please do not post duplicate Threads. You have multiple Forum Contributors working on the same issue. The consequence is
    you'll get some of us a bit upset and be put on our Ignore List.

    Not a good practice if you wish help.
    You're totally right, not my intention to up set any of you guys, and just wanted to re edit my post for my need. Which doesn't have to be with select case. Cuz That will seem messy as well.

    Sorry for going against the rules, not going to happen again.

  31. #31
    Forum Contributor
    Join Date
    07-20-2015
    Location
    Covilhã
    MS-Off Ver
    2010
    Posts
    516

    Re: Select-Case with several check box's instead of IF'S stats

    Quote Originally Posted by Doc.AElstein View Post
    . There have been many Duplicate posts just recently, indeed I reported them and mentioned in several Threads already, but usually they are identical and are posted within a short space of time, almost immediately. The start of the two Threads were different and there was about a day between so , I am surprised that this was the case here. ( And he has just made a new one!! )

    . Anyway I am struggling at this line in Mike's code

    Please Login or Register  to view this content.

    . As it fails to find any object i try…but OK leave it to Mike ( If he is notified of responses by E-Mail he should have a few from all over the place!!! As FDibbins is merging!! – And If E-mail notification is working – that too and many other things with the Excel Forum Software have not been just recently )
    .
    . Sorry if i confused the issue

    Alan
    What does your code do in my needs? It's not defining a multiarearange so then i can export to PDF

    Am i misreading?

  32. #32
    Forum Contributor
    Join Date
    07-20-2015
    Location
    Covilhã
    MS-Off Ver
    2010
    Posts
    516

    Re: Select-Case with several check box's instead of IF'S stats

    Quote Originally Posted by jaslake View Post
    @Doc

    As we've seen, this is a Double Post, I'm CERTAIN Forum generated. Mike's Post was not available to me when I posted. The Double Posts have since been consolidated. Had I known Mike was on the issue I'd have followed the Thread and left it in Mike's quite capable hands.
    That way of doing will be my test version but i need to put every result .. i wanted it to merge defined ranges to a multirange (when checkbox true) from each checkbox..

    But seems there is no solution for that
    Like my attached file, but without the IF's , something automatic
    Last edited by brainzlp; 09-06-2015 at 06:12 PM.

  33. #33
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Select-Case with several check box's instead of IF'S stats

    @ Alan

    Nah, you didn't confuse the issue. These situations do get me a bit torked off when I've spent a bit of time on the OP's issue only to find that other Forum Members are working on the same issue in other, duplicate, Threads.

    When I see people like Mike working on ANY issue I'm interested in I'll perhaps follow the Thread but I'll not interfere as I know the OP is in good hands and my time can be "wasted" elsewhere.

  34. #34
    Forum Contributor
    Join Date
    07-20-2015
    Location
    Covilhã
    MS-Off Ver
    2010
    Posts
    516

    Re: Select-Case with several check box's instead of IF'S stats

    Quote Originally Posted by jaslake View Post
    @ Alan

    Nah, you didn't confuse the issue. These situations do get me a bit torked off when I've spent a bit of time on the OP's issue only to find that other Forum Members are working on the same issue in other, duplicate, Threads.

    When I see people like Mike working on ANY issue I'm interested in I'll perhaps follow the Thread but I'll not interfere as I know the OP is in good hands and my time can be "wasted" elsewhere.
    You're totally right, although the solution was good, it could get a little more variable, cuz selected case, it's like an if statements, all help and ideias will increment knowledge and will contribute for a better answer.

    I just have to apologize for my duplicated posts, although that's a solved issue.
    Hope we can all together find a solution for this unique problem, since i haven't found any solution in google neither excelforums

  35. #35
    Forum Expert Doc.AElstein's Avatar
    Join Date
    05-23-2014
    Location
    '_- Germany >Outside Building things.... Mostly
    MS-Off Ver
    Office 2003 2007 2010 PC but Not mac. XP and Vista mostly, sometimes Win 7
    Posts
    3,618

    Re: Select-Case with several check box's instead of IF'S stats

    Quote Originally Posted by brainzlp View Post
    What does your code do in my needs? It's not defining a multiarearange so then i can export to PDF

    Am i misreading?
    .1 ) It is NOT MY Code-. It is the code from idea from mikerickson. Here:
    http://www.excelforum.com/excel-prog...ml#post4180491


    . If I understand it , it should give some number out (checkSummary is a long number )
    . You can then use this number as the selection criteria for you different Combined Ranges of interest.
    . Unfortunately, I could not get it to work.
    . I think you will have to wait and hope mikerickson will come back to help You. Possibly tomorrow. It may be late where he lives now.
    . It is also late here by me now. I shall take a look tomorrow. Maybe you could try a PM to mikerickson to ask again for help. At the time that he gave You the code You had not managed to update the correct File.
    . You must be patient, as we try to help you if and when we can. I will try again tomorrow.
    . ( Maybe I PM mikerickson tomorrow for You – You not can… know how not to is )
    Alan
    Last edited by Doc.AElstein; 09-06-2015 at 06:37 PM.

  36. #36
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Select-Case with several check box's instead of IF'S stats

    @ brainzip

    You've acknowledged your transgression...enough...accepted (at least by me).

    Please know, if Mike is still interested, he'll work it out. Mike is one of the more astute Members of this Forum. If Mike needs assistance he'll ask for it...we have even a Forum for that!

  37. #37
    Forum Expert Doc.AElstein's Avatar
    Join Date
    05-23-2014
    Location
    '_- Germany >Outside Building things.... Mostly
    MS-Off Ver
    Office 2003 2007 2010 PC but Not mac. XP and Vista mostly, sometimes Win 7
    Posts
    3,618

    Re: Select-Case with several check box's instead of IF'S stats

    Quote Originally Posted by jaslake View Post
    @ Alan

    Nah, you didn't confuse the issue. These situations do get me a bit torked off when I..... but I'll not interfere as I know the OP is in good hands and my time can be "wasted" elsewhere.
    . I think we best just hope mikerickson comes back and spoon feeds him an answer, maybe one of us could politely ask him per E-mail. I feel a bit out of place as a very junior member...
    ... but he may just pop back anyway.


    I have lived through one Brain_____ Thread and got there in the end when two Seinior Experts failed ( or rather lost the will to live!! ). But unfortunately User Form stuff is something i have no experience with what so ever.

    Alan

  38. #38
    Forum Expert Doc.AElstein's Avatar
    Join Date
    05-23-2014
    Location
    '_- Germany >Outside Building things.... Mostly
    MS-Off Ver
    Office 2003 2007 2010 PC but Not mac. XP and Vista mostly, sometimes Win 7
    Posts
    3,618

    Re: Select-Case with several check box's instead of IF'S stats

    Quote Originally Posted by jaslake View Post
    .... If Mike needs assistance he'll ask for it...we have even a Forum for that!
    .. my last comment for Today.... I picked up that other Brain____ thread after an expert lost the will to live and "Called in the Cavelry" GOOD LUCK MIKE. We wish you strengh

    Gute Nacht
    Aus
    Bavaria
    Alan
    Last edited by Doc.AElstein; 09-06-2015 at 06:42 PM.

  39. #39
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Select-Case with several check box's instead of IF'S stats

    @Alan

    We don't need to contact Mike...he'll be on it... Mike's a bit tenacious...just follow the Thread.

  40. #40
    Forum Contributor
    Join Date
    07-20-2015
    Location
    Covilhã
    MS-Off Ver
    2010
    Posts
    516

    Re: Select-Case with several check box's instead of IF'S stats

    Quote Originally Posted by Doc.AElstein View Post
    .1 ) It is NOT MY Code-. It is the code from idea from mikerickson. Here:
    http://www.excelforum.com/excel-prog...ml#post4180491


    . If I understand it , it should give some number out (checkSummary is a long number )
    . You can then use this number as the selection criteria for you different Combined Ranges of interest.
    . Unfortunately, I could not get it to work.
    . I think you will have to wait and hope mikerickson will come back to help You. Possibly tomorrow. It may be late where he lives now.
    . It is also late here by me now. I shall take a look tomorrow. Maybe you could try a PM to mikerickson to ask again for help. At the time that he gave You the code You had not managed to update the correct File.
    . You must be patient, as we try to help you if and when we can. I will try again tomorrow.
    . ( Maybe I PM mikerickson tomorrow for You – You not can… know how not to is )
    Alan
    Thanks for your help and patience, i am new in vba and i need to do some complex stuff for a company. Thanks again for your time

  41. #41
    Forum Expert mikerickson's Avatar
    Join Date
    03-30-2007
    Location
    Davis CA
    MS-Off Ver
    Excel 2011
    Posts
    6,229

    Re: Select-Case with several check box's instead of IF'S stats

    I would not use a SelectCase structure for this

    I would build a range and then export that range
    Please Login or Register  to view this content.

  42. #42
    Forum Expert mikerickson's Avatar
    Join Date
    03-30-2007
    Location
    Davis CA
    MS-Off Ver
    Excel 2011
    Posts
    6,229

    Re: Select-Case with several check box's instead of IF'S stats

    The reason that you were struggling with the line in the looping code is that your control names aren't indexed. (The non-indexed style is what I prefer).
    To loop with generically named controls I would use a loop like

    Please Login or Register  to view this content.

  43. #43
    Forum Expert Greg M's Avatar
    Join Date
    08-16-2007
    Location
    Dublin. Ireland
    MS-Off Ver
    Office 2016
    Posts
    4,481

    Re: Select-Case with several check box's instead of IF'S stats

    Hi there,

    The attached workbook shows an approach that seems fairly similar to Mike's, but it decouples the worksheet layout from the VBA code used in the UserForm.

    If you need to add extra CheckBoxes in the future, the following routines can be easily modified to accommodate them:

    Please Login or Register  to view this content.

    and:


    Please Login or Register  to view this content.

    Hope this helps - please let me know how you get on.

    Regards,

    Greg M
    Attached Files Attached Files

  44. #44
    Forum Contributor
    Join Date
    07-20-2015
    Location
    Covilhã
    MS-Off Ver
    2010
    Posts
    516

    Re: Select-Case with several check box's instead of IF'S stats

    Quote Originally Posted by mikerickson View Post
    I would not use a SelectCase structure for this

    I would build a range and then export that range
    Please Login or Register  to view this content.
    Hello, thanks for your reply, your solution seems the best and understandable at least for me, i tried it but didn't work.

    I made some adjusts, and it highlights:

    Please Login or Register  to view this content.
    [/CODE]

    My atual code is:

    Please Login or Register  to view this content.
    You can check file in attach
    Attached Files Attached Files

  45. #45
    Forum Contributor
    Join Date
    07-20-2015
    Location
    Covilhã
    MS-Off Ver
    2010
    Posts
    516

    Re: Select-Case with several check box's instead of IF'S stats

    Quote Originally Posted by mikerickson View Post
    The reason that you were struggling with the line in the looping code is that your control names aren't indexed. (The non-indexed style is what I prefer).
    To loop with generically named controls I would use a loop like

    Please Login or Register  to view this content.
    I can put in the checkbox's name as CheckBox1 2 3 4 5 etc instead of names if you prefer, then i comment the code to know which is each.
    Hope you can help me with highlighted code

  46. #46
    Forum Contributor
    Join Date
    07-20-2015
    Location
    Covilhã
    MS-Off Ver
    2010
    Posts
    516

    Re: Select-Case with several check box's instead of IF'S stats

    Quote Originally Posted by Greg M View Post
    Hi there,

    The attached workbook shows an approach that seems fairly similar to Mike's, but it decouples the worksheet layout from the VBA code used in the UserForm.

    If you need to add extra CheckBoxes in the future, the following routines can be easily modified to accommodate them:

    Please Login or Register  to view this content.

    and:


    Please Login or Register  to view this content.

    Hope this helps - please let me know how you get on.

    Regards,

    Greg M
    Hello Mr,

    I've checked your attach, i don't understand nothing of the code (or small stuff) ALTHOUGH, it works 200% perfectly. Thanks!

    If i introduce a new CheckBox (Example Checkbox6) what do i need to do, i've done that but it highlights this:

    Please Login or Register  to view this content.
    Check File in attach please:
    Attached Files Attached Files

  47. #47
    Forum Expert Greg M's Avatar
    Join Date
    08-16-2007
    Location
    Dublin. Ireland
    MS-Off Ver
    Office 2016
    Posts
    4,481

    Re: Select-Case with several check box's instead of IF'S stats

    Hi again,

    Using the attached version of the workbook means that you need to change only one routine to accommodate new CheckBoxes - I've highlighted where you need to make those changes:

    Please Login or Register  to view this content.
    I've changed the second routine, so you don't need to make any changes there:

    Please Login or Register  to view this content.

    Hope this helps - please let me know how you get on.

    Regards,

    Greg M


    P. S. The reason that your modification (adding CheckBox6) didn't work is that you added the code for the new CheckBox only in the second routine ("SelectedCheckBoxes") - you didn't add it in the first one ("mvaPrintRanges")
    Attached Files Attached Files
    Last edited by Greg M; 09-07-2015 at 05:25 AM. Reason: P. S. added

  48. #48
    Forum Contributor
    Join Date
    07-20-2015
    Location
    Covilhã
    MS-Off Ver
    2010
    Posts
    516

    Re: Select-Case with several check box's instead of IF'S stats

    Hi again Mr. Greg,

    It's great now, thanks.

    I liked one thing in the previous file, which is: MsgBox Confirming what have been printed
    I would like to have that showing:
    "There have been printed: Impressão ; Confeção ; etc"

    Is there a way to put that?

    If you edit something, please do it in the attached file, since i have a new checkbox and adjusted the code to test this check box (Which btw works 100%)

    So please, my last ask is if you can help me, putting a MsgBox showing which pages were printed.
    All pages have the name in the top: saying: "Seccão Impressão" and so on

    In Worksheets.Cells("L1") ; L74 And on

    Thanks in advance

    * In the previous file you had the Address Printed,
    I would like to know if there is a way to put the correct Section which is in the Cells L1L74 etc , accordingly to the printed area
    Attached Files Attached Files

  49. #49
    Forum Expert Greg M's Avatar
    Join Date
    08-16-2007
    Location
    Dublin. Ireland
    MS-Off Ver
    Office 2016
    Posts
    4,481

    Re: Select-Case with several check box's instead of IF'S stats

    Hi again,

    In the previous file you had the Address Printed,
    I would like to know if there is a way to put the correct Section which is in the Cells L1L74 etc , accordingly to the printed area
    I can restore the address message if you want - it was there just for my information while debugging.

    I don't really understand what you mean in your second point.

    Have to go out now - hope to be able to reply later.

    Regards,

    Greg M

  50. #50
    Forum Expert Doc.AElstein's Avatar
    Join Date
    05-23-2014
    Location
    '_- Germany >Outside Building things.... Mostly
    MS-Off Ver
    Office 2003 2007 2010 PC but Not mac. XP and Vista mostly, sometimes Win 7
    Posts
    3,618

    Re: Select-Case with several check box's instead of IF'S stats

    @ mikerickson
    Quote Originally Posted by mikerickson View Post
    The reason that you were struggling with the line in the looping code is that your control names aren't indexed. (The non-indexed style is what I prefer).
    To loop with generically named controls I.......
    Thanks, I have “lost the Thread” a bit now with this Thread,
    but I learnt a bit there. Thanks

    @ Greg M
    . Thanks for coming in. I see Brain____ is getting great help now from the two of you

    ………………………………………..
    . Sorry for confusing things, but Brain was a bit confused, posting erratically Duplicate posts, etc., and I just wanted to try and co- ordinate get the Thread back on track, and also tried to help Brain___ myself. I am out of my depth now , and leave it now to you two. Clearly he has hit lucky and is getting great Profi Help now.
    Alan

  51. #51
    Forum Contributor
    Join Date
    07-20-2015
    Location
    Covilhã
    MS-Off Ver
    2010
    Posts
    516

    Re: Select-Case with several check box's instead of IF'S stats

    Quote Originally Posted by Greg M View Post
    Hi again,



    I can restore the address message if you want - it was there just for my information while debugging.

    I don't really understand what you mean in your second point.

    Have to go out now - hope to be able to reply later.

    Regards,

    Greg M
    Hi again,

    I mean:

    Please Login or Register  to view this content.
    At the end of the macro, when you had the Adress Message, i would like to put which sections were printed.

    Like:
    If i select srange2 and srange3 a message appears saying: "Sections printed: _
    Confeção & Embalagem "

    Is there a way to do so?

  52. #52
    Forum Expert Greg M's Avatar
    Join Date
    08-16-2007
    Location
    Dublin. Ireland
    MS-Off Ver
    Office 2016
    Posts
    4,481

    Re: Select-Case with several check box's instead of IF'S stats

    Hi again,

    The attached version of the workbook displays a message stating which sections have been included in the PDF file. It uses a two-dimensional array to store the Values and the Captions of the various CheckBoxes on the UserForm, so the text values used in the message for identifying the sections will be the same as those used in the CheckBox Captions.

    Hope this helps - please let me know how you get on.

    Regards,

    Greg M
    Attached Files Attached Files

  53. #53
    Forum Contributor
    Join Date
    07-20-2015
    Location
    Covilhã
    MS-Off Ver
    2010
    Posts
    516

    Re: Select-Case with several check box's instead of IF'S stats

    Quote Originally Posted by Greg M View Post
    Hi again,

    The attached version of the workbook displays a message stating which sections have been included in the PDF file. It uses a two-dimensional array to store the Values and the Captions of the various CheckBoxes on the UserForm, so the text values used in the message for identifying the sections will be the same as those used in the CheckBox Captions.

    Hope this helps - please let me know how you get on.

    Regards,

    Greg M
    Hello Mr. Greg M,

    It's PERFECT! That's 100% what i need and want.
    I just Have to modify here to insert a new checkbox correct? With this new message, do i need to insert in another place?
    Please Login or Register  to view this content.

  54. #54
    Forum Expert Greg M's Avatar
    Join Date
    08-16-2007
    Location
    Dublin. Ireland
    MS-Off Ver
    Office 2016
    Posts
    4,481

    Re: Select-Case with several check box's instead of IF'S stats

    Hi again,

    Many thanks for all of your feedback and also for the Reputation increase

    That's correct - you need to make the change/additions only in the three places indicated. The text for the print message associated with the new Checkbox will be taken automatically from whatever Caption value you assign on the UserForm.

    Glad to have been able to help.

    Best regards,

    Greg M

  55. #55
    Forum Contributor
    Join Date
    07-20-2015
    Location
    Covilhã
    MS-Off Ver
    2010
    Posts
    516

    Re: Select-Case with several check box's instead of IF'S stats

    Quote Originally Posted by Greg M View Post
    Hi again,

    Many thanks for all of your feedback and also for the Reputation increase

    That's correct - you need to make the change/additions only in the three places indicated. The text for the print message associated with the new Checkbox will be taken automatically from whatever Caption value you assign on the UserForm.

    Glad to have been able to help.

    Best regards,

    Greg M
    You're welcome, Thank you very much. Have a great day .

    You helped me a lot really. it's better than i could ever ask.
    Continue with the good work.

  56. #56
    Forum Contributor
    Join Date
    07-20-2015
    Location
    Covilhã
    MS-Off Ver
    2010
    Posts
    516

    Re: Select-Case with several check box's instead of IF'S stats

    Quote Originally Posted by Greg M View Post
    Hi again,

    Many thanks for all of your feedback and also for the Reputation increase

    That's correct - you need to make the change/additions only in the three places indicated. The text for the print message associated with the new Checkbox will be taken automatically from whatever Caption value you assign on the UserForm.

    Glad to have been able to help.

    Best regards,

    Greg M
    Hello Mr. Greg,

    Sorry to bother you again, one more thing i noticed now.

    I would like to display in that MsgBox, when i click "Todas" the message to display should be all the caption and not the Caption "Todas" is there a way to do this easily?

    "Todas" in my country means "All" - Should have done this in english to test.

    Please soon as you can and if you have availability, tell me how can i put the MsgBox displaying All captions probably with something like this to activate other checkbox's:
    ' CheckBox6 is "Todas" / "All"
    If CheckBox6.Value = True then CheckBox1.Value = True and CheckBox2.Value = True etc etc

    Although i would like something more automatic cuz if i change the checkbox's i will have to change this code.

    Thanks for the past and future help from you and all members in the forum

    I would like to pre select the checkbox based on a textbox value witch is linked to cell "tipo de impressão o" in sheet ordem trabalho tapasois.

    Hope someone can help me out, i would rather prefer Greg since he develop the code although if someone can edit and introduce this its perfect. Please let me know if i can talk here or should create another thread

    Edit File in attach please (I've made some editions) or tell me where to insert the new code
    Attached Files Attached Files
    Last edited by brainzlp; 09-08-2015 at 07:06 PM.

  57. #57
    Forum Expert Greg M's Avatar
    Join Date
    08-16-2007
    Location
    Dublin. Ireland
    MS-Off Ver
    Office 2016
    Posts
    4,481

    Re: Select-Case with several check box's instead of IF'S stats

    Hi again,

    Take a look at the attached workbook and see if it does what you want.

    The code gets a bit more complicated because you want to have future CheckBoxes linked to the "All" Checkbox - it's necessary to use the "Class plus Collection" approach to achieve this. The attached workbook uses this approach, so you should be able to add as many extra CheckBoxes as you need - just follow the same steps as you used before to add CheckBox6. One point - the code expects to find one Checkbox which has the Caption value of "Todas", so you must ensure that one (and only one) Checkbox has this Caption value.

    The Print Message now includes the descriptions of the individual sections, even if the "Todas" Checkbox has been selected.

    Hope this helps - as always, please let me know how you get on.

    Regards,

    Greg M
    Attached Files Attached Files

  58. #58
    Forum Contributor
    Join Date
    07-20-2015
    Location
    Covilhã
    MS-Off Ver
    2010
    Posts
    516

    Re: Select-Case with several check box's instead of IF'S stats

    Quote Originally Posted by Greg M View Post
    Hi again,

    Take a look at the attached workbook and see if it does what you want.

    The code gets a bit more complicated because you want to have future CheckBoxes linked to the "All" Checkbox - it's necessary to use the "Class plus Collection" approach to achieve this. The attached workbook uses this approach, so you should be able to add as many extra CheckBoxes as you need - just follow the same steps as you used before to add CheckBox6. One point - the code expects to find one Checkbox which has the Caption value of "Todas", so you must ensure that one (and only one) Checkbox has this Caption value.

    The Print Message now includes the descriptions of the individual sections, even if the "Todas" Checkbox has been selected.

    Hope this helps - as always, please let me know how you get on.

    Regards,

    Greg M
    Hello Mr. Greg,

    It's perfect as is, can you please help me out with my second problem:
    In this same file, i have to put the checkbox's selected depending on a textbox which is linked to Worksheets("ORDEM TRABALHO TAPASOIS").RANGE("F33") (to be introduced in the userform)
    If that textbox is: "A) Flexografia" then select Checkbox1 / 2 / 4 / 5
    If that textbox is: "B) Offset" then select checkbox 2 and 3
    If that textbox is: "C) Serigrafia" then select all checkbox's
    and so on to be introduced.... <--- New definitions here (like the printed ranges you coded)

    This is for this project.

    For my second project
    I just have to check if: Worksheets("ORDEM TRABALHO TAPASOIS").RANGE("F33") has that values and then print the ranges (no need to have userform neither checkbox's just print the ranges as defined here):
    If that Cell is: "A) Flexografia" then select printrange1 2 3 4
    If that Cell is: "B) Offset" then select printrange 2 and 3
    If that Cell is: "C) Serigrafia" then Printrange all
    and so on as defined..... <--- New definitions here


    In resume, these are 2 different projects i will have to manage, i will have both in use, but 1 needs the userform and validation, the other must be automatic.
    Both must show the message of printedranges or variables defined for the that range (since in project #2 we don't need userform imo) printed and must save in pdf, in the same folder path.
    If possible do the second one, in another sheet, without all that code, so it runs a lot faster than this without opening forms and stuff.

    Please help me out with this as soon as you can, this is too advanced to me and i am learning a lot .

    Thank you for your help on my problem, seriously..
    Last edited by brainzlp; 09-09-2015 at 02:46 PM.

  59. #59
    Forum Expert Greg M's Avatar
    Join Date
    08-16-2007
    Location
    Dublin. Ireland
    MS-Off Ver
    Office 2016
    Posts
    4,481

    Re: Select-Case with several check box's instead of IF'S stats

    Hi again,

    See if the attached workbook does what you need.

    It uses a new routine which you can adapt to suit your requirements:

    Please Login or Register  to view this content.
    Hope this helps - please let me know how you get on.

    Regards,

    Greg M
    Attached Files Attached Files

  60. #60
    Forum Contributor
    Join Date
    07-20-2015
    Location
    Covilhã
    MS-Off Ver
    2010
    Posts
    516

    Re: Select-Case with several check box's instead of IF'S stats

    Quote Originally Posted by Greg M View Post
    Hi again,

    See if the attached workbook does what you need.

    It uses a new routine which you can adapt to suit your requirements:

    Please Login or Register  to view this content.
    Hope this helps - please let me know how you get on.

    Regards,

    Greg M
    Hello Greg,

    That is a perfect solution for my project #1 which has to link with the checkbox's and then just Validate the preselected checkbox's. I just have to suit as required the cases and the other 3 things correct? (The value that is changed 1/2/3 is the checkbox value correct?

    For the second project i told you:
    I don't want to link to check box, just have to link the printranges to the F33 Cell
    Then it export to pdf and shows the message of the printedranges without showing any checkbox's values or Userform.

    It's like only the Select-Case issue but defining the print-ranges for all sections.

    I don't know if you can get what i mean, it's like the same project, but without the Userform and checkbox's. Just depend on that Cell Value, and if the has X value then print some ranges, Y value print another ranges and print all.

  61. #61
    Forum Expert Greg M's Avatar
    Join Date
    08-16-2007
    Location
    Dublin. Ireland
    MS-Off Ver
    Office 2016
    Posts
    4,481

    Re: Select-Case with several check box's instead of IF'S stats

    Hi again,


    I just have to suit as required the cases and the other 3 things correct? (The value that is changed 1/2/3 is the checkbox value correct?

    Yes, your understanding is correct


    To achieve what you want for your project which does not require a UserForm, just make a copy of the current workbook and delete or "comment out" the highlighted lines in the following routine:

    Please Login or Register  to view this content.
    Hope this helps - as always, please let me know how you get on.

    Regards,

    Greg M

  62. #62
    Forum Contributor
    Join Date
    07-20-2015
    Location
    Covilhã
    MS-Off Ver
    2010
    Posts
    516

    Re: Select-Case with several check box's instead of IF'S stats

    Quote Originally Posted by Greg M View Post
    Hi again,



    Yes, your understanding is correct


    To achieve what you want for your project which does not require a UserForm, just make a copy of the current workbook and delete or "comment out" the highlighted lines in the following routine:

    Please Login or Register  to view this content.
    Hope this helps - as always, please let me know how you get on.

    Regards,

    Greg M
    Ok i shall delete the:
    frm.show
    if frm.Ok = True then
    End if

    Although let the call printselected ranges be there right?
    Unload frm should be deleted no?

    And all this, will execute the printranges and export in pdf as well form the default selection right?

  63. #63
    Forum Expert Greg M's Avatar
    Join Date
    08-16-2007
    Location
    Dublin. Ireland
    MS-Off Ver
    Office 2016
    Posts
    4,481

    Re: Select-Case with several check box's instead of IF'S stats

    Hi again,


    Although let the call printselected ranges be there right?

    Yes. This is correct.


    Unload frm should be deleted no?

    This should NOT be deleted.

    The UserForm continues to operate "in the background" - the appropriate CheckBoxes are "prepopulated" on the basis of what is contained in the "InitialiseCheckBoxes" routine. The UserForm is NOT displayed to the User, but functions as if the "Validar" button had been pressed by the User.

    Regards,

    Greg M

  64. #64
    Forum Contributor
    Join Date
    07-20-2015
    Location
    Covilhã
    MS-Off Ver
    2010
    Posts
    516

    Re: Select-Case with several check box's instead of IF'S stats

    Ignore this
    Last edited by brainzlp; 09-11-2015 at 10:51 AM.

  65. #65
    Forum Contributor
    Join Date
    07-20-2015
    Location
    Covilhã
    MS-Off Ver
    2010
    Posts
    516

    Re: Select-Case with several check box's instead of IF'S stats

    Ok, thats it. It pressed the "Validar" button to continue. That's ok.(I shall not delete the Userform as help, since it will run in background)
    For this project i don't think i will need more help.
    Thanks you very much for all your help!

  66. #66
    Forum Expert Greg M's Avatar
    Join Date
    08-16-2007
    Location
    Dublin. Ireland
    MS-Off Ver
    Office 2016
    Posts
    4,481

    Re: Select-Case with several check box's instead of IF'S stats

    Hi again,

    You're welcome - glad to have helped.

    Best regards,

    Greg M

  67. #67
    Forum Contributor
    Join Date
    07-20-2015
    Location
    Covilhã
    MS-Off Ver
    2010
    Posts
    516

    Re: Select-Case with several check box's instead of IF'S stats

    Quote Originally Posted by Greg M View Post
    Hi again,

    You're welcome - glad to have helped.

    Best regards,

    Greg M
    Hello Mr. Greg,

    Just want to let you know, that the project is running smoothly, i've introduced some more codes and everything is ok.

    Thanks for your precious help.
    Last edited by brainzlp; 09-30-2015 at 05:48 AM.

  68. #68
    Forum Contributor
    Join Date
    07-20-2015
    Location
    Covilhã
    MS-Off Ver
    2010
    Posts
    516

    Re: Select-Case with several check box's instead of IF'S stats

    Quote Originally Posted by Greg M View Post
    Hi again,

    You're welcome - glad to have helped.

    Best regards,

    Greg M
    Hello Mr. Greg,

    Firstly thank you for the time you invested which workes perfectly.

    I would like to know if there is a easy way to do a thing:
    Now, what we have is according to checkbox's selected we have printed ranges.

    I need two things, for importance order:
    1) According to checkbox's selected, put in the same column Name in Worksheets("Tapasois") the word "SIM"
    Let me better explain:

    In Sheet2 i have a table, and in somecolumns i have the production sections ("Bolha, Embalagem , Serigrafia, etc etc") - Which i have too in the Checkbox's Caption
    What i need is, according to checkbox's selected put the word "SIM" in the last filled row in Sheet2 columns of the section.

    Probably i can do this with IF Checkbox1.Value = True then put in Cell X the word "SIM" put let me know if there is a better way.

    My 2nd need would be to change a little bit the Msgbox of the checkbox's select

    The Checkbox's are according to Master Sections like, "Production , expedition , packaging"
    Checkbox1 , 2 , 4 are from Production
    Check 3 , 5,8 are from expedition
    Checkbox 6,7 are from packaging

    Display a Msgbox saying according to checking box value:
    "The following sections were printout"

    From Production:
    Checkbox1.caption
    Checkbox2.caption

    Expedition:
    None

    Packaging:
    Checkbox7

    This is an exemple for Check1,2 and 7 pressed.

    Thank you very much for your help in advance.

  69. #69
    Forum Contributor
    Join Date
    07-20-2015
    Location
    Covilhã
    MS-Off Ver
    2010
    Posts
    516

    Re: Select-Case with several check box's instead of IF'S stats

    Can someone help me with my problem?

    Thanks in advance

  70. #70
    Forum Contributor
    Join Date
    07-20-2015
    Location
    Covilhã
    MS-Off Ver
    2010
    Posts
    516

    Re: Select-Case with several check box's instead of IF'S stats

    Quote Originally Posted by brainzlp View Post
    Hello Mr. Greg,

    Just want to let you know, that the project is running smoothly, i've introduced some more codes and everything is ok.

    Thanks for your precious help.
    Hello Mr. Greg,

    Sorry to bother you again, is there a way you can give me some help for my problems?

    Thanks for your time

  71. #71
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,612

    Re: Select-Case with several check box's instead of IF'S stats

    Please start a new thread with the current problem. 69 posts is to much to go through to understand what the current problem is. Please, also, attach the lastest workbook.
    Ben Van Johnson

  72. #72
    Forum Contributor
    Join Date
    07-20-2015
    Location
    Covilhã
    MS-Off Ver
    2010
    Posts
    516

    Re: Select-Case with several check box's instead of IF'S stats

    Quote Originally Posted by protonLeah View Post
    Please start a new thread with the current problem. 69 posts is to much to go through to understand what the current problem is. Please, also, attach the lastest workbook.
    I think it will be hard to understand since the code was almost all done by Greg, but i will reduce my workbook to that macros working so someone can have a look. I will try to get a thread name which suggests the problem. " Place X in correct column according to checkbox selects on form"

  73. #73
    Forum Contributor
    Join Date
    07-20-2015
    Location
    Covilhã
    MS-Off Ver
    2010
    Posts
    516

    Re: Select-Case with several check box's instead of IF'S stats

    Quote Originally Posted by protonLeah View Post
    Please start a new thread with the current problem. 69 posts is to much to go through to understand what the current problem is. Please, also, attach the lastest workbook.
    New thread created with file in attach.
    Hope you can help me out as well

    http://www.excelforum.com/excel-prog...ml#post4241187

  74. #74
    Forum Contributor
    Join Date
    07-20-2015
    Location
    Covilhã
    MS-Off Ver
    2010
    Posts
    516

    Re: Select-Case with several check box's instead of IF'S stats

    I need help with my new thread, which is linked to this one.

    Hope someone can help me out.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] IF condition, check more than one cell then Select Case
    By blue.chio in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-15-2013, 09:59 AM
  2. [SOLVED] Need the proper syntax to use Case/Select Case in vba properly.
    By rbion in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-16-2013, 02:34 PM
  3. [SOLVED] Disregard case in VBA code. (UCase, LCase, Select Case)
    By Orestees in forum Excel Programming / VBA / Macros
    Replies: 17
    Last Post: 09-07-2012, 12:12 PM
  4. Case Select compile error "Case without case select"
    By coasterman in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-23-2012, 06:50 AM
  5. Select case to check string array
    By Deamo in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-17-2010, 01:27 AM
  6. Case Select....The alternative method for long "Select Case"
    By kimyap in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-22-2008, 01:24 AM
  7. Case without select case error
    By Tano in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-25-2007, 10:27 AM
  8. Select case / case is, multiple arguments
    By Werner Rohrmoser in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-03-2006, 07:00 AM

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