+ Reply to Thread
Results 1 to 4 of 4

Custom User form to add info to textbox's

  1. #1
    Registered User
    Join Date
    10-25-2012
    Location
    Ne/Ia
    MS-Off Ver
    office 2016
    Posts
    52

    Custom User form to add info to textbox's

    I currently have 3 columns: item column, include, exclude. i have a check box assigned to the include and exclude column. i have text box's called include and exclude. anything i add to the Item column can be sent to the wanted text box, by selecting the corresponding check box and then executing code. the whole process is cumbersome, but it works. i want it to work better.

    I would like to create a userform that has my list and checkboxes so that they are not tied to cells. I need assistance.

    my current code has to be changed every time i want to add rows above, because the check boxes are assigned to cells:

    Please Login or Register  to view this content.

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,259

    Re: Custom User form to add info to textbox's

    Hello Hooty,

    It is unlikely anyone will try to reproduce your form's layout and code, which is essential to helping you with this problem. Please post your workbook. If your workbook contains any personal, confidential, or sensitive information then change it before you post the workbook.
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  3. #3
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,653

    Re: Custom User form to add info to textbox's

    Here is code that will loop through the checkboxes on the sheet and add text to the include textbox.

    This is for the Include checkboxes. If the checkbox is in column 1 (change that to suit), and is checked, it will look at the row that checkbox is in and get the text from columns R and S

    Please Login or Register  to view this content.
    Instead of clicking a command button, call this procedure from each Include checkbox_click procedure
    Surround your VBA code with CODE tags e.g.;
    [CODE]your VBA code here[/CODE]
    The # button in the forum editor will apply CODE tags around your selected text.

  4. #4
    Registered User
    Join Date
    10-25-2012
    Location
    Ne/Ia
    MS-Off Ver
    office 2016
    Posts
    52

    Re: Custom User form to add info to textbox's

    Here is a copy of the workbook.
    Attached Files Attached Files

+ 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] textbox in a user form
    By grkchakri in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-23-2013, 05:18 AM
  2. vba excel user form restrict input on user textbox
    By samz93 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-04-2013, 04:38 PM
  3. Match new password to specific user and update list via custom user form
    By Sargekd in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-03-2011, 09:40 AM
  4. Get textbox value from custom/dynamically generated form
    By sonyidicula in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-16-2010, 08:52 AM
  5. Keeping all info in form textbox?
    By panthers7171 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-12-2009, 08:27 PM
  6. User Form Info
    By Peter in forum Excel General
    Replies: 4
    Last Post: 04-13-2006, 08:10 AM
  7. [SOLVED] textbox on user form
    By Mike in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-02-2005, 12:45 PM
  8. User Form in VB = TextBox
    By Kel in forum Excel General
    Replies: 1
    Last Post: 08-10-2005, 08:05 PM

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