LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 45
Default Macro to Color Code Cells

Execl 2000:

We have a workbook with a worksheet that can have a
varying number of rows. The last 5 rows however will
always have data like the following.

A B C
51 Total 70
52
53 Test1 20
54 Test2 75
55 Test3 5

We want the macro to compare the number in B53 to B51. If
B53 is greated than B51, we want A53 and B53 to be
formatted with a green fill color. If B54 is greater than
B51, we want A54 and B54 to have a yellow fill. Otherwise
we want A55 and B55 to be red.

We don't know how to get this to work because the number
of rows will always be different when we run the macro.

Appreciate any assistance.
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I color code comments in cells on Excel spreadsheet? LBH Excel Worksheet Functions 1 September 27th 09 05:04 PM
How to color automatically color code sums in cells kuroitenpi Charts and Charting in Excel 1 November 29th 06 03:16 AM
Color code cells Angela Excel Worksheet Functions 3 September 28th 06 03:04 PM
color code cells based on golddigger formula Network Guru Excel Discussion (Misc queries) 2 March 23rd 06 03:47 AM
Code to color selected ws cells James A[_2_] Excel Programming 1 September 7th 03 02:34 PM


All times are GMT +1. The time now is 12:17 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"