+ Reply to Thread
Results 1 to 3 of 3

Macro to delete all rows if checkbox not checked

  1. #1
    Registered User
    Join Date
    03-15-2013
    Location
    NYC
    MS-Off Ver
    Excel 2010
    Posts
    2

    Cool Macro to delete all rows if checkbox not checked

    Hi!

    I'm trying to create a spreadsheet that will automatically delete a row (and the checkbox itself) if a checkbox is not checked. It should shift all of the cells up, and delete all contents of the rows that are not checked. One issue is, the sheet would have to be able to be "reset" such that if someone clicks something by mistake and the macro is run, they could easily start from the beginning.

    Is this possible? I'm using Excel 2010. Very new to programming macros, so don't really know anything. Please help!

    -djh

  2. #2
    Valued Forum Contributor xlbiznes's Avatar
    Join Date
    02-22-2013
    Location
    Bahrain
    MS-Off Ver
    Excel 2007
    Posts
    1,223

    Re: Macro to delete all rows if checkbox not checked

    Hi,

    Please post a sample workbook for others to understand and offer you a solution.
    Happy Computing ,

    Xlbiznes.

    To show your appreciation please click *

  3. #3
    Registered User
    Join Date
    03-15-2013
    Location
    NYC
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Macro to delete all rows if checkbox not checked

    Sure, here is an example of the layout. I read a post on this forum about removing rows using checkboxes, so that code is in the "view code" section of worksheet1. It doesn't work properly though.
    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)

Tags for this Thread

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