+ Reply to Thread
Results 1 to 6 of 6

UserForm Checkbox populate last empty row of range

  1. #1
    Registered User
    Join Date
    08-22-2011
    Location
    Laval quebec
    MS-Off Ver
    MS 365
    Posts
    99

    UserForm Checkbox populate last empty row of range

    Greetings guys!

    Hope you can help me out on this one!

    I have a spreadsheet with a Userform with many checkboxes and textbox.

    Upon the click of the submit button, I would like the checkbox values as well as the texbox values to populate the last empty cell in their respective ranges.

    For example:
    If Checkbox1 is checked, then I'd like it to return the value "Y-Cording" in the the first available empty cell in range E.
    If there is text entered in Textbox1 then i'd like it to return the entered text in the first available empty cell in range Z..etc..

    Please note that the data needs to be input starting at row 4

    Thanks guys

  2. #2
    Registered User
    Join Date
    05-15-2013
    Location
    Wisconsin, USA
    MS-Off Ver
    Excel 2010
    Posts
    42

    Re: UserForm Checkbox populate last empty row of range

    can you post the worksheet with the userform and example of where you want the data?

  3. #3
    Registered User
    Join Date
    08-22-2011
    Location
    Laval quebec
    MS-Off Ver
    MS 365
    Posts
    99

    Re: UserForm Checkbox populate last empty row of range

    Hey!

    Here you go

    I made some minor adjustments, I changed checkboxes to radio buttons (More convenient for what i need

    Oh and by the way..how to make the submit button return a msgbox error if there are fields in the form that havn't been filled? I guess I would also need to add a cancel button at that point so that the someone won't be stuck if they decide to cancel lol

    PS: The data shall go in Sheet 2

    Thanks a bunch
    Attached Files Attached Files
    Last edited by djsouljah; 08-15-2013 at 03:03 PM.

  4. #4
    Registered User
    Join Date
    05-15-2013
    Location
    Wisconsin, USA
    MS-Off Ver
    Excel 2010
    Posts
    42

    Re: UserForm Checkbox populate last empty row of range

    what do you want to be placed in the sheet? just a check mark or a 1 or 0 or what?

  5. #5
    Registered User
    Join Date
    08-22-2011
    Location
    Laval quebec
    MS-Off Ver
    MS 365
    Posts
    99

    Re: UserForm Checkbox populate last empty row of range

    Hey!

    A checkmark would be good enough..just for the part where it says type of monitoring i would prefer it would be whatevers intitled "Y-cording","remote" etc...

    Thanks again

  6. #6
    Registered User
    Join Date
    08-22-2011
    Location
    Laval quebec
    MS-Off Ver
    MS 365
    Posts
    99

    Re: UserForm Checkbox populate last empty row of range

    Hey Krabine,

    I pretty much figured this one out. Everything is functionning correctly.

    The only thing I'm missing is: When the user clicks on the submit button in the UserForm, I want a macro to check to see if there are any OptionButtons that are not selected. I realise I can do this whith a IF value = False but the problem I'm encountering is that my OptionButtons are currently grouped. So how do I apply a macro for the grouped buttons ?

    I've tried assigning a control source for each of them and from there on I have an OR formula in a cell that checks if any of the values is = True.. But that is causing a little issue with my OptionButtons as it's changing their format to Greyed out dot with a white background. Funny thing is, once I do that, and then remove the ControlSource, it's not going back to it's original format..Weird.

    Any other solutions to this ?

+ 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. Using Named range to populate a Combobox in userform
    By Macdave_19 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-04-2015, 09:57 PM
  2. Replies: 0
    Last Post: 11-15-2012, 12:29 PM
  3. Delete Range when checkbox in Userform is Selected
    By Jonathan78 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-04-2010, 03:13 AM
  4. How do I get a UserForm to populate the next empty row in a worksheet?
    By JustinMAS in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-09-2008, 02:43 AM
  5. Populate a combobox in a userform with a dynamic range.
    By BigBas in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-23-2007, 01:12 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