+ Reply to Thread
Results 1 to 5 of 5

Delete values based on deselected checkboxes in userform

  1. #1
    Registered User
    Join Date
    11-29-2010
    Location
    Belgium
    MS-Off Ver
    2010
    Posts
    87

    Thumbs up Delete values based on deselected checkboxes in userform

    Hi

    I have a macro which will automatically open a userform upon opening (see screenshot in attached workbook). I want these checkboxes all to be checked when opening the userform. That way the user has to deselect the person who is absent.

    Secondly I want a macro to delete all names (of whom the box is unchecked) in the "updated_deck" sheet, and this when the user clicks the "next" button on the userform.

    This the tricky part of the macro I have to create, so your help is highly appreciated.

    Kind regards,
    Tino XXL
    Attached Files Attached Files
    Last edited by Tino XXL; 02-21-2012 at 01:04 PM. Reason: Issue solved

  2. #2
    Valued Forum Contributor john55's Avatar
    Join Date
    10-23-2010
    Location
    Europe
    MS-Off Ver
    Excel for Microsoft 365
    Posts
    2,028

    Re: Delete values based on deselected checkboxes in userform

    Quote Originally Posted by Tino XXL View Post
    Hi

    I have a macro which will automatically open a userform upon opening (see screenshot in attached workbook). I want these checkboxes all to be checked when opening the userform. That way the user has to deselect the person who is absent.
    hi
    try this, hope it helps you
    Please Login or Register  to view this content.
    Regards, John55
    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.

    ...enjoy -funny parrots-

  3. #3
    Registered User
    Join Date
    11-29-2010
    Location
    Belgium
    MS-Off Ver
    2010
    Posts
    87

    Re: Delete values based on deselected checkboxes in userform

    Hi John,

    Thanks for the quick feedback. That surely takes care of the first part. However, how can I make the macro delete the names when they are unchecked?

    Kind regards,
    Tino XXL

  4. #4
    Valued Forum Contributor john55's Avatar
    Join Date
    10-23-2010
    Location
    Europe
    MS-Off Ver
    Excel for Microsoft 365
    Posts
    2,028

    Re: Delete values based on deselected checkboxes in userform

    hi,
    for part 2, maybe someone else can help us!

  5. #5
    Valued Forum Contributor john55's Avatar
    Join Date
    10-23-2010
    Location
    Europe
    MS-Off Ver
    Excel for Microsoft 365
    Posts
    2,028

    Re: Delete values based on deselected checkboxes in userform

    add a CommnadButton in yr UserForm and add this piece of code.
    well...it could be shorter and nice but I do not know how to make it this way! ))
    please continue it for all yr cases and see if it helps you.
    Please Login or Register  to view this content.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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