+ Reply to Thread
Results 1 to 91 of 91

How to transfer the String from Checkbox

  1. #1
    Registered User
    Join Date
    03-07-2017
    Location
    Canada
    MS-Off Ver
    2010
    Posts
    182

    How to transfer the String from Checkbox

    Good Day!

    I have a multiple checkbox with corresponding string on it, if the user check the first checkbox then click the submit button, the specific string will move to a specific Row(G5), but if the user check multiple checkbox the string will move to ROW(G5, G6, G7) depending on how many checkbox were check.

    Here is my code:
    Private Sub CommandButton4_Click()
    Dim RowCounter
    RowCounter = 0

    RowCount = Worksheets("Sheet1").Range("A1").CurrentRegion.Rows.count
    With Worksheets("Sheet1").Range("A1")
    If CheckBox1.Value = True Then
    .Offset(RowCount + RowCounter, 6).Value = .Offset(RowCount + RowCounter, 6).Value & vbCrLf & "Unable to remove footer"
    RowCounter = RowCounter + 1
    Else:
    .Offset(RowCount, 6).Value = ""
    End If
    If CheckBox2.Value = True Then
    .Offset(RowCount + RowCounter, 6).Value = .Offset(RowCount + RowCounter, 6).Value & vbCrLf & "Unable to use PMSectionHead as First Level header/section"
    RowCounter = RowCounter + 1
    Else:
    .Offset(RowCount, 6).Value = ""
    End If
    End With
    End Sub

    The only problem here if I check the first check box the string doesn't transfer for first Available Row (G5).

    Thank you and hoping for a response.

  2. #2
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,900

    Re: How to transfer the String from Checkbox

    A Sample file will help to read the code while 'in action' Instead of Current Region I would use the rows.count).End(xlup).Row but that is a choice
    ---
    Hans
    "IT" Always crosses your path!
    May the (vba) code be with you... if it isn't; start debugging!
    If you like my answer, Click the * below to say thank-you

  3. #3
    Registered User
    Join Date
    03-07-2017
    Location
    Canada
    MS-Off Ver
    2010
    Posts
    182

    Re: How to transfer the String from Checkbox

    how to update my code using your code? rows.county.endxlup?

  4. #4
    Registered User
    Join Date
    03-07-2017
    Location
    Canada
    MS-Off Ver
    2010
    Posts
    182

    Re: How to transfer the String from Checkbox

    how to attached a file?

  5. #5
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,900

    Re: How to transfer the String from Checkbox

    You should read the forum's instructions

    Here is a small doc explaining it.
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    03-07-2017
    Location
    Canada
    MS-Off Ver
    2010
    Posts
    182

    Re: How to transfer the String from Checkbox

    Hi I attached the main file. My issue was if I only check 1 checkbox it doesn't show the strings under Attributes ROW. can you help me to enhance my code?

    Thank you in Advance!!
    Attached Files Attached Files

  7. #7
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,900

    Re: How to transfer the String from Checkbox

    Firs, why is your file so large?
    Because you have saved over 1 million rows of 'empty' rows.
    The file is only 29 KB and NOT 5 MB !!!
    Okay, I rand a test without knowing what it is supposed to do.
    but lets see if I understand the user form you enter a report name, the two persons whatever start time and then check all the checkboxes.
    What does you end result look like?

    I have reattached the file with my result so if you could fill in what you expect to see too then it will be easier to understand.
    I checked all the checkboxes in the first frame but not all showed, so please explain and show the result (fill it in manually) to see if then we can help.
    What needs to be saved in the 'database' worksheet?
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    03-07-2017
    Location
    Canada
    MS-Off Ver
    2010
    Posts
    182

    Re: How to transfer the String from Checkbox

    The End result should all the details from the user form will transfer to Database sheet for reporting purposes. The only issue here was the checkbox, that every time I checked only 1 checkbox it doesn't allowed to show in database sheet. The checkbox represent as Audit findings for each employee so it is important to capture what is check in the checkbox. thank you for your help much appreciated. I'm just new yo VBA

  9. #9
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,900

    Re: How to transfer the String from Checkbox

    The code you have here does not make sense.
    You can choose many checkboxes but you only save 4.
    For every row?
    Please Explain it clear and Give me a sample of the result you what. your words do tell this to me and I am sure you can explain it better.

    I attach the file again with a screen shot and the vba has been modified, but still tell me more please, if you want to be helped.
    If English is a problem try it in French
    Attached Images Attached Images
    Attached Files Attached Files

  10. #10
    Registered User
    Join Date
    03-07-2017
    Location
    Canada
    MS-Off Ver
    2010
    Posts
    182

    Re: How to transfer the String from Checkbox

    Thanks for cleaning my previous codes, I just leave just 4 checkbox for now. I check your updated file, wow its working. I got some minor issues, please see attached screenshot. The Attributes it overlapped to the previous information, I want to be that string on the next available blank cells below. is it possible?
    Attached Images Attached Images

  11. #11
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,900

    Re: How to transfer the String from Checkbox

    My msitake, change the foloowing line of code back to this

    Please Login or Register  to view this content.

  12. #12
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,900

    Re: How to transfer the String from Checkbox

    Just one question, why did you clear a cell value if the checkbox was not selected?
    That is where to test If me.Check... etc Then value Esle ""?

  13. #13
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,900

    Re: How to transfer the String from Checkbox

    Does this mean that now you are going to add all the other IF Checkbox? = True Then ... for ALL the checkboxes? What happens if you decide to add an extra checkbox, that will all need to be rewritten again!
    This is not the way to do that and as I see it you fill the CheckBox's caption as information, True?

    You should use Control to loop through all the checkboxes
    Last edited by Keebellah; 03-08-2017 at 08:45 AM. Reason: Extra information

  14. #14
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,900

    Re: How to transfer the String from Checkbox

    This one will process any checkbox you select in any of the multi pages
    Attached Files Attached Files

  15. #15
    Registered User
    Join Date
    03-07-2017
    Location
    Canada
    MS-Off Ver
    2010
    Posts
    182

    Re: How to transfer the String from Checkbox

    Yes I will need to be rewritten again also on the other tab. This project is a Checklist for a Quality Audit for each Employee, so if the employee was missed some of the Quality checklist I need to check which checkbox they missed the Quality. Then if I click the submit button it will transfer to database sheet as reporting tool for our daily usage. I'm not familiar with the Control loop. Sorry...

  16. #16
    Registered User
    Join Date
    03-07-2017
    Location
    Canada
    MS-Off Ver
    2010
    Posts
    182

    Re: How to transfer the String from Checkbox

    Thank you!!! and now It's working perfectly...You are such a VBA Genius...

  17. #17
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,900

    Re: How to transfer the String from Checkbox

    How wre the points (scores) counted what determines the value? You posted that too and also the time difference.

  18. #18
    Registered User
    Join Date
    03-07-2017
    Location
    Canada
    MS-Off Ver
    2010
    Posts
    182

    Re: How to transfer the String from Checkbox

    The time difference are now ok. The Textbox5 has default 100% on it. then once the Checkboxes checked by the user the corresponding score will be deducted to 100%. Thank you for patiently helping me

    Unable to remove Footer 1.00%
    Unable to use PMSectionHead as First Level header/section 3.00%
    Unable to use PMSectionHeadLevel2 as Second Level header/section 2.50%
    Unable to use PMSectionHeadLevel3 as Third Level header/section 2.50%
    Unable to use QuestionStyle_HangingIndent (questions with a number/letter prefix) 2.50%
    Unable to use QuestionStyle_NoHangingInd (questions without a prefix) 2.50%
    Unable to use QuestionStyleBullet (questions with a bullet prefix) 2.50%
    Unable to use QuestionStyle_Alpha (sub-questions with a number or letter prefix) 2.50%
    Unable to remove Extra spacing 0.50%
    Other 0.50%
    Last edited by N323100; 03-08-2017 at 11:49 AM.

  19. #19
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,900

    Re: How to transfer the String from Checkbox

    But, what is the corresponding score for each checkbox? and what are the number of questions used for?
    I made s minor modification.
    I noticed that there is always an option 'Other' but when you read the file you do not know which checkbox page was clicked for the 'Other'

    I highlighted the resulting selection
    Attached Images Attached Images

  20. #20
    Registered User
    Join Date
    03-07-2017
    Location
    Canada
    MS-Off Ver
    2010
    Posts
    182

    Re: How to transfer the String from Checkbox

    wow that was great!!

  21. #21
    Registered User
    Join Date
    03-07-2017
    Location
    Canada
    MS-Off Ver
    2010
    Posts
    182

    Re: How to transfer the String from Checkbox

    Attached herewith the corresponding score.thanks
    Attached Images Attached Images

  22. #22
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,900

    Re: How to transfer the String from Checkbox

    Looks all good but then I would appreciate you attach the correct file with all the pages. The one you have been attaching stops with File name:

  23. #23
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,900

    Re: How to transfer the String from Checkbox

    I hope you do not mind, I've been playing a little with your file and added some minor features such as showing the score.
    I find it very un-maintainable that you would have to add an event for every checkbox changed.
    I also place the named ranges so you can just add reviewers and requesters (Sheet3) and not have to modify the vba code to refresh the comboboxes. The named ranges are dynamic.

    Oh, and there is a macro in the XtraModule01 named MakeCheckBoxList()

    If you add checkboxes to the userform, all you have to do afterwards is run that macro and the list of checkboxes in Sheet3 will be updated with the new ones and all you have to do is add the score value in column B for it to work

    And, the userform is opened by Right-Clicking the mouse in Cell A1 of the Database worksheet

    Have fun with it
    Attached Files Attached Files

  24. #24
    Registered User
    Join Date
    03-07-2017
    Location
    Canada
    MS-Off Ver
    2010
    Posts
    182

    Re: How to transfer the String from Checkbox

    Wow!! This is the exact tool that I want to create..Your knowledge about Excel VBA are so advanced.. I hope to learn a lot more from you and to this forum. Thank you for all your Help very much appreciate.
    Is it possible to add a Button at sheet1 to Show the Userform and the Database sheet as default?

  25. #25
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,900

    Re: How to transfer the String from Checkbox

    The file now opens with the Database sheet as active sheet.
    All you need to do is right-click Cell A1 to open the userform
    I mentioned that if the post.
    However if you want a button, just place a button or shape anywhere you want and assign the macro in the mdoule to it: showPrepForm() this macro is in the XtraModule
    Attached Files Attached Files

  26. #26
    Registered User
    Join Date
    03-07-2017
    Location
    Canada
    MS-Off Ver
    2010
    Posts
    182

    Re: How to transfer the String from Checkbox

    Yup I already created a button to show the userform, is there anyway once I click the show userform button the sheet will switch to database?
    And also it is possible if the Database sheet was on a different location(shared drive) so we can have a centralized database sheet.

    Thank you
    Last edited by N323100; 03-09-2017 at 04:46 AM.

  27. #27
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,900

    Re: How to transfer the String from Checkbox

    Well if you have the macro that is assigned to the button.
    Think of VBA like a book you are reading, every line you read is an instruction to be carried out.
    So try it...
    What is the first action you want to do?

    In this case just two actions.

    1. Select / activate the desired sheet
    2. Show the Userform

    You go the second one right or else the userform will not show.

    So what would be the first step? ......

    If you can't figure it out, the answer is way down













































    Please Login or Register  to view this content.

  28. #28
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,900

    Re: How to transfer the String from Checkbox

    The database is sheet is where you open the Excel file.
    I think you are talking about a shared file.
    That is a little more complicated to do and my experience with shared files is not that good.
    I would suggest you create a copy of this file and place it on the share then look up the settings and set it to be used as a shared file, but like I said, I never used this but you can try.

  29. #29
    Registered User
    Join Date
    03-07-2017
    Location
    Canada
    MS-Off Ver
    2010
    Posts
    182

    Re: How to transfer the String from Checkbox

    Thank you for everything! I will study and analyze the updated file, so if the time comes to defend the tool to our manager I know how to explain all the VBA coding on it.

  30. #30
    Registered User
    Join Date
    03-07-2017
    Location
    Canada
    MS-Off Ver
    2010
    Posts
    182

    Re: How to transfer the String from Checkbox

    What if I want to remove the Page Caption "Formatting and Style:" every time I press submit button?

  31. #31
    Registered User
    Join Date
    03-07-2017
    Location
    Canada
    MS-Off Ver
    2010
    Posts
    182

    Re: How to transfer the String from Checkbox

    never mind I already figure it out

  32. #32
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,900

    Re: How to transfer the String from Checkbox

    Then you remove that in the VBA code, like I said before, read VBA like you would a series of instructions one after another respecting the VBA syntax

    The RED text is what you have
    Please Login or Register  to view this content.
    The GREEN text is what you want

    Please Login or Register  to view this content.
    You can always leave the vbCrLf but why do you want the empty line?

  33. #33
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,900

    Re: How to transfer the String from Checkbox

    Messages crossed
    You see, it is not that difficult, it just requires patience AND time

  34. #34
    Registered User
    Join Date
    03-07-2017
    Location
    Canada
    MS-Off Ver
    2010
    Posts
    182

    Re: How to transfer the String from Checkbox

    Thanks! I want to exclude that portion for reporting purposes

  35. #35
    Registered User
    Join Date
    03-07-2017
    Location
    Canada
    MS-Off Ver
    2010
    Posts
    182

    Re: How to transfer the String from Checkbox

    and also it is possible to add a scroll bar inside userform then to control the Database sheet to scroll up and down?

  36. #36
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,900

    Re: How to transfer the String from Checkbox

    You will have to add an object to the userform and code that:

    This link shows only the table portion but you could edit it.
    http://stackoverflow.com/questions/1...el-on-vba-form

    It is not for me to judge but I am just curious why you would want to do that anyway.

  37. #37
    Registered User
    Join Date
    03-07-2017
    Location
    Canada
    MS-Off Ver
    2010
    Posts
    182

    Re: How to transfer the String from Checkbox

    hmmm because this tool will be use everyday and for us we can easily check the information if it reach below the database worksheet while the userform is open.

    Thanks

  38. #38
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,900

    Re: How to transfer the String from Checkbox

    Why not just add another form to search an look?

    Using the link I sent you you could add a userform that shows only the group of rows you want to see.

    Good luck.

    If you have something that works or the basic idea maybe I can take a look too.

    I've got the ideas but not the code and not the time to write this, and more, you should do it as much of it yourself to understand the basics so that you are not dependent of others.

    I do this normally for a living. (www.hcandts.com)
    Last edited by Keebellah; 03-09-2017 at 08:01 AM. Reason: error

  39. #39
    Registered User
    Join Date
    03-07-2017
    Location
    Canada
    MS-Off Ver
    2010
    Posts
    182

    Re: How to transfer the String from Checkbox

    Thank you! I'll keep on watching youtube videos about Excel VBA and Macro.

  40. #40
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,900

    Re: How to transfer the String from Checkbox

    When you have the time, write down what you want to achieve, scrolling down with the userform on screen will hide much of the screen since it's quite a large userfrom and also depends on the screen size.
    I have a 22"and it fills it nicely with not much space to spare.

  41. #41
    Registered User
    Join Date
    03-07-2017
    Location
    Canada
    MS-Off Ver
    2010
    Posts
    182

    Re: How to transfer the String from Checkbox

    Sure Thanks a lot!

  42. #42
    Registered User
    Join Date
    03-07-2017
    Location
    Canada
    MS-Off Ver
    2010
    Posts
    182

    Re: How to transfer the String from Checkbox

    Hi can you check the attachment, I created a new userform for a different Work Task (Final) It's just the same as the InitialRep but different score and checkbox description. Thank you
    Attached Files Attached Files

  43. #43
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,900

    Re: How to transfer the String from Checkbox

    I'll look at it later today, this afternoon is a little busy.
    One other question though, the scrolling of the database 'records' is this merely to see the results? Or also to edit?

  44. #44
    Registered User
    Join Date
    03-07-2017
    Location
    Canada
    MS-Off Ver
    2010
    Posts
    182

    Re: How to transfer the String from Checkbox

    Just to see the result.. Thanks no rush. Have a great day!

  45. #45
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,900

    Re: How to transfer the String from Checkbox

    Looks good, and .... you want to know why it is not working?

    Two things: your Multipage is named Multipage2 and not Multipage1, I changed that to be Multipage1 too.

    The function GETSCORE was a PRIVATE function, this means it only works in that module.

    I moved it to the XTraModule VBA and made it a Public Function. it works.

    When you copy userforms or code the checkboxes an everything change.

    You will have to keep in mind that if you add checkboxes but want them to work but the name is unique, the you will have to give each checkbox a name so instead op Checkbox1 or CheckBox2 to name then CheckBoxREP1 for all the Checkboes in REP and CheckBoxPRN1 for all in priter or whatever you think of.

  46. #46
    Registered User
    Join Date
    03-07-2017
    Location
    Canada
    MS-Off Ver
    2010
    Posts
    182

    Re: How to transfer the String from Checkbox

    You are such a genius..I hope my knowledge with regards to VB are same like yours hahahahahha

  47. #47
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,900

    Re: How to transfer the String from Checkbox

    I'm not genius and I'm learning every day. It all comes down to simple logic and filled back-pack, during the years you collect and store information, it always comes to use and at the same time you develop your own techniques and those are difficult to teach, they're based on experience, a race driver can tell you that you have to stay focused but the technique itself you can only do it on your own.

    Programming is no mysterious thing it it just straight logic and with time and patience you will attain your own level of genius

    One thing, you now have two userforms what when you add a third, edit Sheet2 and add a new button?
    You see, it starts with these small things haw can you make something like this dynamic and and be able to modify it with the least effort, this is where time and logic comes in.
    I've got an idea but will have to work it out.

  48. #48
    Registered User
    Join Date
    03-07-2017
    Location
    Canada
    MS-Off Ver
    2010
    Posts
    182

    Re: How to transfer the String from Checkbox

    I just made an effort to create this excel into form, because this old version is a plain excel with a drop down list and came into my mind what if I enhanced this excel into simple excel macro. Well I'm a Computer Science graduate but has not solid experience in programming due to got a new job after a graduated way back 2005 hahhahaha.. Now that this VBA Macro is more interesting than playing online games hahahhaha.. I'll start to study all the basic information upto advanced ad look for a free training here regarding Automation using VBA.

  49. #49
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,900

    Re: How to transfer the String from Checkbox

    If you really like programming and 'puzzles' it's great.
    I started with macro's somewhere in 1995 and I've now come to develop quite extended applications and have been doing small jobs on a contract basis since my retirement.
    Your boss will need to allow you time if you really go into looking deep into it.
    There quite a lot of sites take a look at Ron de Bruin, Chip Pearson , Ozgrid well, there are many.
    My Training Hub (Australia) is a nice site and the newsletters are revealing as are the available sample files.
    The Office Ribbon is a nice one, I customize the Ribbon for my projects.

  50. #50
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,900

    Re: How to transfer the String from Checkbox

    Take a look at this post and the sample file, the video just shows what it does
    http://www.vbaexpress.com/forum/show...erform-Example

  51. #51
    Registered User
    Join Date
    03-07-2017
    Location
    Canada
    MS-Off Ver
    2010
    Posts
    182

    Re: How to transfer the String from Checkbox

    Wow you started 1995? hahahaha I'm just a grade school pupil that time. Thank you for some references I'll find time to read and study VBA Macro. you are truly a inspiration to beginners like us!

  52. #52
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,900

    Re: How to transfer the String from Checkbox

    I was thinking that you could do all that in just one userform but the comes the point that I do not understand the scoring method
    I'll put together a test version that uses both Userforms which their own checkboxes.

    I have the idea and will do so but am a little busy now

    I am assuming that when you run one form an the next it could be for the same RFP and same requester and reviewer, correct?
    Wouldn't you want the score for each checkbox place in the score column so that you can add them on selection? and what about the number of answers where does this come back.

  53. #53
    Registered User
    Join Date
    03-07-2017
    Location
    Canada
    MS-Off Ver
    2010
    Posts
    182

    Re: How to transfer the String from Checkbox

    Actually I will add two more forms for with same concept but less checkbox. We will have a own copy of each file and our manager will open each file to gather all the data inside the database sheet every week for reporting purposes. For now that will be our setup because I'm not sure if its possible to have a 1 Database sheet or file for us where we can save all the information on each every form but we are using shared drive.

  54. #54
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,900

    Re: How to transfer the String from Checkbox

    You could do it
    If each has his own file then the option could be added to 'upload' the contents to the shared file and after that remove it form the user's file, that way after every 'Submit' the question could be asked 'Do you wish to upload / transfer results to master database'

    Then the Manager only has to look at that one.

    Again, you have not answered the question about the scores and if it is so that different forms can be done for the same requester/reviewer and RFP?

  55. #55
    Registered User
    Join Date
    03-07-2017
    Location
    Canada
    MS-Off Ver
    2010
    Posts
    182

    Re: How to transfer the String from Checkbox

    No need for now because our manager only needs the total score remaining. I truly appreciate your inputs and to enhanced this project. for now it looks good and I need to study your coding so if the times comes ask me regarding the code I can easily answers their question.

  56. #56
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,900

    Re: How to transfer the String from Checkbox

    I am stalking you just one more time.
    I managed to make my idea work.
    You add your new userform and make the necessary modifications so that it works.
    These are the next steps:
    1. Unhide Sheet3
    2. in Column J under USERFORMS add the new Userform name to the list, DO NOT insert it in between but just add it below.
    The Named range is dynamic so nothing to do there.
    3. In the xTraModule01 execute the macro MakeCheckBoxList() and the new form's Checkboxes will be added leaving Column B blank so you can place the new Scores here or modify any of the existing, that is why the Userforms list must not be modified since the userforms are read in that order.

    4. Hide Sheet3 again.
    5. Save the file

    And then right-click Cell A1 and you will see the new userform in the selection form.

    If you misspelled the Userform's name or it does not exist, it will not show and will not be available.

    I have attached version 2.2
    Attached Files Attached Files

  57. #57
    Registered User
    Join Date
    03-07-2017
    Location
    Canada
    MS-Off Ver
    2010
    Posts
    182

    Re: How to transfer the String from Checkbox

    Thanks a lot! you know I've learned a lot from you. This will help to my future project. You did a great job with my project you modified it to the most efficient and perfect excel tool.

  58. #58
    Registered User
    Join Date
    03-07-2017
    Location
    Canada
    MS-Off Ver
    2010
    Posts
    182

    Re: How to transfer the String from Checkbox

    I'm looking for some references on how to put a scroll bar to control the database worksheet

  59. #59
    Registered User
    Join Date
    03-07-2017
    Location
    Canada
    MS-Off Ver
    2010
    Posts
    182

    Re: How to transfer the String from Checkbox

    Hi I need some enhancement with the Tool. I will add a textbox on each form, for every Other (Combobox) checked the user need to input a comment on a textbox. I will attached the updated file. once the user submit the button it will also transfer to Additional Comment Section located at "Quality Database Sheet", or is there anyway that instead of adding "Additional Comment" section in excel the string inside the textbox for other will combine with "Other - "String inside Textbox" ? like what you did with the Combobox Parent.Caption. Please refer to Final UserForm. Thank you
    Attached Files Attached Files
    Last edited by N323100; 03-21-2017 at 10:20 AM.

  60. #60
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,900

    Re: How to transfer the String from Checkbox

    You want the entered comments to be included when saving?
    Is there a limit you to the amount of text?
    Only those forms that have a textbox?

  61. #61
    Registered User
    Join Date
    03-07-2017
    Location
    Canada
    MS-Off Ver
    2010
    Posts
    182

    Re: How to transfer the String from Checkbox

    You want the entered comments to be included when saving? - Every time we use the Other (Checkbox) we requiring each user to input additional comment
    Is there a limit you to the amount of text? - None
    Only those forms that have a textbox? - Actually All Userform except Activity Tracker
    Last edited by N323100; 03-21-2017 at 10:36 AM.

  62. #62
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,900

    Re: How to transfer the String from Checkbox

    Do you know the amount of code that is required to make this work in a professional way?
    My first suggestion and I would appreciate it if you did that.
    The TextBoxes must all be renamed.
    Suggestion: if the CheckBox for the 'Other' is named CheckBox34 then name that TextBox TextBox34 that way you can reduce the overhead
    Also each TextBox must have the EnterBehavior must be set to True for these textboxes.

  63. #63
    Registered User
    Join Date
    03-07-2017
    Location
    Canada
    MS-Off Ver
    2010
    Posts
    182

    Re: How to transfer the String from Checkbox

    Allright! Thank you

  64. #64
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,900

    Re: How to transfer the String from Checkbox

    You say "Allright! Thank you" but did you understand what I meant?
    I will try my best to help you with where I can

  65. #65
    Registered User
    Join Date
    03-07-2017
    Location
    Canada
    MS-Off Ver
    2010
    Posts
    182

    Re: How to transfer the String from Checkbox

    Yes I understand and also I'm trying to figure it out. Thanks in advance.. Have a great day!

    Here is the updated userform

    Thanks
    Attached Files Attached Files
    Last edited by N323100; 03-23-2017 at 06:57 AM.

  66. #66
    Registered User
    Join Date
    03-07-2017
    Location
    Canada
    MS-Off Ver
    2010
    Posts
    182

    Re: How to transfer the String from Checkbox

    Hi What if I want also to add the RFP Name Requested From Reviewer Name and Request Type instead of leave it blank if there is 2 or more attributes?

    thank you
    Attached Images Attached Images

  67. #67
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,900

    Re: How to transfer the String from Checkbox

    I'll see if I can figure it out

  68. #68
    Registered User
    Join Date
    03-07-2017
    Location
    Canada
    MS-Off Ver
    2010
    Posts
    182

    Re: How to transfer the String from Checkbox

    Yes Please and Thank you for all the effort and knowledge

  69. #69
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,900

    Re: How to transfer the String from Checkbox

    Don't thank me yet, I don't know if I can solve it

  70. #70
    Registered User
    Join Date
    03-07-2017
    Location
    Canada
    MS-Off Ver
    2010
    Posts
    182

    Re: How to transfer the String from Checkbox

    hahahahah I don't also know how to resolve either

  71. #71
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,900

    Re: How to transfer the String from Checkbox

    Hi, sorry to have kept you waiting.
    I think I got it working.
    Try the Final Userform. Do NOT hide the textboxes since there is no triggering for the Checkbox with the caption 'Other'

    One important condition for this to work:

    The CheckBoxs have a sequence numbe so evry CheckBox99 which is for the option Other the TxtOther99 should be the same number

    So if you check the Userform Final you will notice I modified that

    CheckBox27 the TxtOther27 corresponds if that is the caption "Other"

    See the attached file and test it.

    You will have to edit the other forms accordingly
    Attached Files Attached Files

  72. #72
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,900

    Re: How to transfer the String from Checkbox

    Hope you can work it out from there.

  73. #73
    Registered User
    Join Date
    03-07-2017
    Location
    Canada
    MS-Off Ver
    2010
    Posts
    182

    Re: How to transfer the String from Checkbox

    Thank you! and no worries. I already updated accordingly

  74. #74
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,900

    Re: How to transfer the String from Checkbox

    You had made some mistakes in the code

    I added a control to force the comment too

    I named the file V3.4 and 4 stands for April
    Attached Files Attached Files

  75. #75
    Registered User
    Join Date
    03-07-2017
    Location
    Canada
    MS-Off Ver
    2010
    Posts
    182

    Re: How to transfer the String from Checkbox

    Great catch! Thank you very much

  76. #76
    Registered User
    Join Date
    03-07-2017
    Location
    Canada
    MS-Off Ver
    2010
    Posts
    182

    Re: How to transfer the String from Checkbox

    I have a follow up question? I want the Start Time to be disabled if the user already click on it. I added a Combobox4 but if the user change the details on combobx4, the Start Time button shows Enabled. please see updated file.
    Attached Files Attached Files

  77. #77
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,900

    Re: How to transfer the String from Checkbox

    I got one question, what does the 'Activity Tracker' do?
    I played around with your file and noticed that it is possible to do all that with one 'Multipurpose' userform so that you can add new checks without having to add a new form for every one.
    See attached images, the selection form where the list shows the available forms and the multipurpose form that is populated depending on the choice
    Attached Images Attached Images

  78. #78
    Registered User
    Join Date
    03-07-2017
    Location
    Canada
    MS-Off Ver
    2010
    Posts
    182

    Re: How to transfer the String from Checkbox

    Nice Form on Select Task! actually activity tracker is a separate process for the user. It's a regular process for them to track. The Final Formatting/Initial Prep/Excel to Word and Word to Excel is for Quality Audited purposes.

    Thank you for your effort on answering my questions.

  79. #79
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,900

    Re: How to transfer the String from Checkbox

    But what if you want to add another Task you want audit another Task, you now add a new form do all the checkboxes and comment textbox and then you can work.
    My idea is to have one Userform that you can use for every option, even permit to select the dropdown (Comboboxes) depending on the selected task.
    All you have to is complete the Captions for each CheckBox and indicate if you want the comment field visible to permit extra comments even it is not the 'Other'

    I always see if I can find a way to avoid extra work when there is code that could be done with one module only and some extra settings.

    Let me know if your interested.

  80. #80
    Registered User
    Join Date
    03-07-2017
    Location
    Canada
    MS-Off Ver
    2010
    Posts
    182

    Re: How to transfer the String from Checkbox

    Yeah sure I'm very interested with this. Actually the checkboxes are fixed for Quality Findings, the Other was the only Quality Findings that out of scope or just new scenario for Quality Audits. Thank you!

  81. #81
    Registered User
    Join Date
    03-07-2017
    Location
    Canada
    MS-Off Ver
    2010
    Posts
    182

    Re: How to transfer the String from Checkbox

    Hi how are you?

  82. #82
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,900

    Re: How to transfer the String from Checkbox

    I'm fine, this is what I have so far, when prompted to enter a pass word ... enter your username (case sensitive)

    I was waiting to see if you were really interested.

    I have not had the time to write a small manual, but give it a shot.

    Press 'Maintenance' log in and then press Add Activity
    Attached Files Attached Files

  83. #83
    Registered User
    Join Date
    03-07-2017
    Location
    Canada
    MS-Off Ver
    2010
    Posts
    182

    Re: How to transfer the String from Checkbox

    Sorry for the late response. I had my vacation last week. Thank you for updating the project. I'll check it right away.

  84. #84
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,900

    Re: How to transfer the String from Checkbox

    I have not had any time to write any explanation but I did make some minor modifications which will probably make it easier to work with when adding a new activity

    Like I mentioned before I did not touch "Activity Tracker" since I have no idea what you want with that.
    Attached Files Attached Files

  85. #85
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,900

    Re: How to transfer the String from Checkbox

    I was wondering if you managed to test it?
    I made some minor modifications and put a PowerPoint presentation together to show how it works to add a new activity and so.

  86. #86
    Registered User
    Join Date
    03-07-2017
    Location
    Canada
    MS-Off Ver
    2010
    Posts
    182

    Re: How to transfer the String from Checkbox

    Hi yes I already tested the new tool and now we are now using it for a test and it works perfectly Thank you! actually I have a new project its more on a checklist documents on MS Word and I would like to create this into excel VBA.

  87. #87
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,900

    Re: How to transfer the String from Checkbox

    Glad to hear it works.
    Here is an update to make it more intuitive.
    Attached Files Attached Files

  88. #88
    Registered User
    Join Date
    03-07-2017
    Location
    Canada
    MS-Off Ver
    2010
    Posts
    182

    Re: How to transfer the String from Checkbox

    Got it! thank you, would you mine to help me with a new project I'm not sure where to start and how to create the form. I'm planning also to mimic the RFP Tool.

  89. #89
    Registered User
    Join Date
    03-07-2017
    Location
    Canada
    MS-Off Ver
    2010
    Posts
    182

    Re: How to transfer the String from Checkbox

    Here is the attached file that I want to convert to VBA.
    Attached Files Attached Files

  90. #90
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,900

    Re: How to transfer the String from Checkbox

    I suggest you start a new thread for this

  91. #91
    Registered User
    Join Date
    03-07-2017
    Location
    Canada
    MS-Off Ver
    2010
    Posts
    182

    Re: How to transfer the String from Checkbox

    Yeah sure! Thank you

+ 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. Userform checkbox transfer
    By Ghostmonkey in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 12-07-2016, 11:55 AM
  2. [SOLVED] String of checkbox captions into one cell
    By bibu in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-23-2015, 05:14 PM
  3. Transfer checkbox caption to different worksheet
    By janicesm in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-01-2014, 10:12 PM
  4. [SOLVED] Range string from checkbox states
    By erich_7719 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-16-2014, 04:10 AM
  5. Transfer/Copy UserForm CheckBox data to Sheet1
    By z-eighty2 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-21-2013, 06:07 PM
  6. [SOLVED] Form w/ Textbox/Radio buttons/Checkbox and button to transfer to 2nd sheet as database
    By christlivethinme in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 01-27-2013, 02:24 PM
  7. [SOLVED] How to use a String to reference to a CheckBox object?
    By excelnewbie80 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-15-2012, 03:59 AM

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.6.0 RC 1