+ Reply to Thread
Results 1 to 6 of 6

Add check boxes when inserting rows

  1. #1
    Banned User!
    Join Date
    10-12-2018
    Location
    Texas
    MS-Off Ver
    2010
    Posts
    358

    Add check boxes when inserting rows

    Hello,

    On my '2011 Ford F150'! sheet I inserted rows but there are not check boxes added on those rows. Is there a way to keep check boxes on every row in the table if new rows are added?

    Thank you
    Attached Files Attached Files

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2411
    Posts
    26,397

    Re: Add check boxes when inserting rows

    You have to manage it with macros. You would use your Worksheet_Change sub to detect insertions and then use code similar to AddCheckBoxesRange to add the checkbox when appropriate.

    I can't figure out your logic for linked cells. In that table the cells linked to the checkboxes seem to have no pattern. For example, the box in O13 is linked to P14; the box in O8 is linked to P7.

    I also can't see why some rows have no checkboxes.

    People like checkboxes because they look cool but having one on every row has its challenges, as you have found. In tables like yours I just use one column to put an X. Then your formula in D

    =IF($P8=TRUE,$G$2,"")

    becomes

    =IF($P8="x",$G$2,"")
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Banned User!
    Join Date
    10-12-2018
    Location
    Texas
    MS-Off Ver
    2010
    Posts
    358

    Re: Add check boxes when inserting rows

    I have a macro that when selecting the range will insert check boxes and assign the adjacent next cell for validity.

    The pattern is altered because I inserted rows and then sorted the column for 'Services'.

    It would be nice if this was more dynamic if possible.

    Can you take a look again please?

  4. #4
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2411
    Posts
    26,397

    Re: Add check boxes when inserting rows

    I explained how you need to modify your existing code to automatically insert checkboxes in new rows. I also gave you an alternative solution to your whole setup that would not require any code and be impervious to inserting and sorting. What is it you want me to look at again?

  5. #5
    Banned User!
    Join Date
    10-12-2018
    Location
    Texas
    MS-Off Ver
    2010
    Posts
    358

    Re: Add check boxes when inserting rows

    I don't understand how to modify my existing code to automatically insert checkboxes in new rows.

  6. #6
    Banned User!
    Join Date
    10-12-2018
    Location
    Texas
    MS-Off Ver
    2010
    Posts
    358

    Re: Add check boxes when inserting rows

    I like having the check boxes so I will manage by manually adding them as the need changes for new rows.

    Thank you for the suggestions.

+ 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. How do I hide rows by using check boxes
    By barneyrubble1965 in forum Excel General
    Replies: 5
    Last Post: 04-14-2016, 06:13 AM
  2. Inserting Multiple Check boxes
    By Punfs in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-13-2014, 10:22 AM
  3. Check boxes that delete other check boxes and change the color of another cell.
    By nhamhamilton in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-29-2014, 02:40 PM
  4. [SOLVED] Coding Yes/No option buttons to not allow check boxes or require check boxes
    By HeyInKy in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-30-2014, 11:32 PM
  5. I need a code for presence check to check multiple text boxes and combo boxes
    By Lee_wwfc in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-24-2013, 01:53 PM
  6. Inserting Multiple Check boxes
    By dagindi in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-05-2010, 11:08 PM
  7. Inserting check boxes
    By Lucille in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-28-2006, 08:40 AM

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