+ Reply to Thread
Results 1 to 13 of 13

Checkbox.check according to textbox value

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

    Checkbox.check according to textbox value

    I have 10 textbox's numbered (1-10) and 10 checkbox's numbered as well from 1 to 10.

    Textbox1 is linked to checkbox1.

    Is there a way that when a user inputs anyvalue on textbox the same checkbox number gets value true imediatly after value input.

    Like this:
    Textbox1 value written is "1º" ---> ACTIVATE TRUE CHECKBOX1
    TEXTBOX7 VALUE WRITTEN is "5º" ---> activate true Checkbox5

    If any question come up let me know please

  2. #2
    Forum Contributor
    Join Date
    09-28-2014
    Location
    harbin,china
    MS-Off Ver
    2007
    Posts
    162

    Re: Checkbox.check according to textbox value

    Hi, brainzlp

    try
    Attached Files Attached Files

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

    Re: Checkbox.check according to textbox value

    If i insert the number only, it works perfect although i need it to be NUMBER + "º" like this: 1º , 2º , 3º
    Last edited by brainzlp; 12-18-2015 at 11:01 AM.

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

    Re: Checkbox.check according to textbox value

    Instead of looking for isnumeric, if you can't put 1º 2º as numbers.

    Please just tell me how can i analise if NOT EMPTY.

    if not empty textbox then same checkbox gets true.

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

    Re: Checkbox.check according to textbox value

    I just need to put true value on checkbox if corresponding textbox number is not empty.

    IF textbox1 is empty then checkbox1 empty.
    IF textbox2 is not empty then checkbox2 is true

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

    Re: Checkbox.check according to textbox value

    misclick, sorry. ignore this.

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

    Re: Checkbox.check according to textbox value

    Do you have any idea simcode ?

    Thanks

  8. #8
    Forum Contributor
    Join Date
    09-28-2014
    Location
    harbin,china
    MS-Off Ver
    2007
    Posts
    162

    Re: Checkbox.check according to textbox value

    Then, that will be easier.
    Attached Files Attached Files

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

    Re: Checkbox.check according to textbox value

    That works perfect.

    Can't i have only 1 private sub instead of 10-20 according to the number of textbox's ?

    For any change in userform textbox's execute this macro:
    Please Login or Register  to view this content.
    And instead of putting from 1 to 10, put from the first to the last textbox
    Let me know if you can help me out

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

    Re: Checkbox.check according to textbox value

    I think i need to build a class module, to have a list of all textbox, and for each textbox caption number, then checkbox caption number gets true value

  11. #11
    Forum Contributor
    Join Date
    09-28-2014
    Location
    harbin,china
    MS-Off Ver
    2007
    Posts
    162

    Re: Checkbox.check according to textbox value

    Yes, if your have a lots of checkboxes to dealwith, building a new class is a good idea.
    The simplest class. Improve it if necessary.
    try
    Attached Files Attached Files
    Last edited by simcode; 12-19-2015 at 10:57 AM.

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

    Re: Checkbox.check according to textbox value

    Quote Originally Posted by simcode View Post
    Yes, if your have a lots of checkboxes to dealwith, building a new class is a good idea.
    The simplest class. Improve it if necessary.
    try
    Your file is working perfectly, even without i understand the code.

    I've done earlier 1 myself which works as well... only with Textbox's as class
    Attached Files Attached Files

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

    Re: Checkbox.check according to textbox value

    I tried in my big file and can't put this working. The textbox change value doesn't work properly.

    Please check this thread with my problem, i need to be able to put this in the big file with printranges according to each checkbox.

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

+ 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] Checkbox Adding Value To a Textbox
    By saban1974 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-27-2014, 09:27 AM
  2. [SOLVED] Make certain Textbox negative value based on CheckBox
    By Excelnoub in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-20-2014, 10:51 AM
  3. Recommended Events on Checkbox/TextBox
    By excelenergy in forum Excel General
    Replies: 1
    Last Post: 03-10-2014, 12:12 PM
  4. Userform Textbox to activate checkbox when at bottom.
    By ourgarden in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-06-2013, 08:03 PM
  5. [SOLVED] textbox and checkbox
    By ngkj in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 07-12-2012, 04:21 AM
  6. Help with entering data in textbox & checkbox for database
    By RossKennedy in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 09-30-2011, 10:08 AM
  7. Use checkbox to allow textbox input
    By JamesT1 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-20-2010, 01:54 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