+ Reply to Thread
Results 1 to 3 of 3

Delete Columns and rows based on cell fill color

  1. #1
    Registered User
    Join Date
    01-31-2014
    Location
    Atlanta, GA
    MS-Off Ver
    Excel 2013
    Posts
    2

    Delete Columns and rows based on cell fill color

    Ok, will try not to be too technical here. I am a locksmith and attempting to write a spreadsheet app. for my line of work. The output page will use columns A-G and rows 1-?10000? depending on the size of the system. If a 5 pin system is requested then columns A+B will be blacked out. 6 pin system A is blacked out. 7 pin system nothing blacked out. Also, if any cell matches the master key that was input, that cell is filled with red. I know, confusing.

    Basically, I am trying to remove the blacked out columns automatically, and to remove the enitire row is any cell in that row is filled with red. Then to remove blank lines. Please help, I have been working on this for weeks. I'm not a programmer, just someone trying to make my life a little easier.

    Sincerely
    Jack W.

  2. #2
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Delete Columns and rows based on cell fill color

    Hi Jack

    Happy to help you with this.

    But you need to post before and after spreadsheets so we can see what you need.

    The programming is relatively easy but will involve macros using several for next loops.

  3. #3
    Registered User
    Join Date
    01-31-2014
    Location
    Atlanta, GA
    MS-Off Ver
    Excel 2013
    Posts
    2

    Re: Delete Columns and rows based on cell fill color

    [ATTACH]294396[/ATTA

    Will this work? I didn't want to attach the file. Its a fairly large spreadsheet.

    Basically it will automatically delete the black columns and delete the rows containing red filled cells. Depending on user input, Columns A and/or B could be numbers or could be both blacked out.
    Attached Images Attached Images

+ 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. Delete Columns Based On Fill Color
    By jlkirk in forum Excel General
    Replies: 7
    Last Post: 01-28-2013, 02:00 PM
  2. Macro to Fill Specific Rows and Columns with Color Based on Cell Value
    By MSmithson in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-04-2011, 09:45 PM
  3. Change Cell Fill Color Based on Colors in 2 Columns
    By djkante in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-05-2010, 08:07 PM
  4. delete rows based on fill color
    By schueyisking in forum Excel General
    Replies: 1
    Last Post: 08-25-2008, 10:28 AM
  5. Delete rows based on fill color
    By schueyisking in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 08-22-2008, 05:54 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