+ Reply to Thread
Results 1 to 3 of 3

Blocks of Cells and Color Fill

  1. #1
    Registered User
    Join Date
    11-19-2010
    Location
    Indianapolis
    MS-Off Ver
    Excel 2003
    Posts
    2

    Blocks of Cells and Color Fill

    Hey folks! Long time browser, first time poster.

    Ok. I have a spreadsheet with almost 5000 lines of data. I need a macro that will separate blocks of 100 lines at a time, each block of 100 filled with a different color. Maybe 3 or 4 colors will work.

    To make it even more difficult, I also want to check macro to make sure the Data in column i after the 100th cell doesn't match the previous cell. If it does, then to color that cell as well.

    Attached is a sample of what i would like it to look like. You will see line 101 matches 100 so it is colored the same as the first 100. Line 301 and 302 match the previous cell, so it selected them.

    Any help you can provide would be great.
    Attached Files Attached Files
    Last edited by MrDubleTruble; 11-19-2010 at 03:36 PM. Reason: Added sample xls and corrected

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Blocks of Cells and Color Fill

    Doesn't match what?

    Create a sample workbook with a 1000+ rows of data, then show BEFORE and AFTER versions of that sheet demonstrating all the hurdles that have to be overcome. Show us what you're after and why and explain the logic of each the choices you make as you manually color up your sample AFTER.

    Click GO ADVANCED and use the paperclip icon to post up your workbook.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    11-19-2010
    Location
    Indianapolis
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: Blocks of Cells and Color Fill

    Quote Originally Posted by JBeaucaire View Post
    Doesn't match what?

    Create a sample workbook with a 1000+ rows of data, then show BEFORE and AFTER versions of that sheet demonstrating all the hurdles that have to be overcome. Show us what you're after and why and explain the logic of each the choices you make as you manually color up your sample AFTER.

    Click GO ADVANCED and use the paperclip icon to post up your workbook.
    I edited the post with the info requested.

    Thanks.

+ 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