+ Reply to Thread
Results 1 to 4 of 4

Delete Range when checkbox in Userform is Selected

  1. #1
    Forum Contributor
    Join Date
    08-19-2009
    Location
    Netherlands, Amsterdam
    MS-Off Ver
    Excel 2010
    Posts
    585

    Delete Range when checkbox in Userform is Selected

    Hello all,

    is there a way to delete range D4:D50 when one of the checkboxes in a userform is selected?

    The checkboxes on the Userform look something like these, and got about 56 of them

    Please Login or Register  to view this content.

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Delete Range when checkbox in Userform is Selected

    Please Login or Register  to view this content.
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Forum Contributor
    Join Date
    08-19-2009
    Location
    Netherlands, Amsterdam
    MS-Off Ver
    Excel 2010
    Posts
    585

    Re: Delete Range when checkbox in Userform is Selected

    Quote Originally Posted by shg View Post
    Please Login or Register  to view this content.
    Thank you for replying SHG.
    But I guess I wasn't realy clear about what I'm trying to accomplish.

    By selecting checkboxes codes are entered on the sheet which will be included in a graph.
    At this moment first all codes need to be manually deleted before opening the userform.
    But I'd like them to be deleted, not when the userform is opened but when the one checkbox is selected. However with your code each time a checkbox is selected the range is cleared.
    While this only need to be done the first time a checkbox is selected. After some rethinking I gues this is hard to accomplish.So I will use the code to clear the contents when the userform is opnened.

    Still one question though. Is it possible that when the userform is openened the checkboxes with a non-empty cell reference is checked?

  4. #4
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Delete Range when checkbox in Userform is Selected

    maybe
    Please Login or Register  to view this content.
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

+ 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