Colored Cells

Glennm

New Member
Joined
Apr 8, 2002
Messages
6
I have a extensive column of numbers. They range between 15 and 21. I also have row 11 different row headings headings.

Depending on the column number I would Like to fill specific row numbers with either red, blue or green.

How can this be done?

Thanks
 

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.
Hi

Can be done in VBA command button with ease, and any amount of conditions

let me know if you need code i post it.

Also check back over my post ihave posted this before, it was ripped apart but my names will enough know and i promise i i developed this code and its simple and works floorless.

let me know!
 
Upvote 0
Good morning Jack!
Hi Glenn
Would you mind posting the conditions and the colors associated with each?
Thanks
Tom
This message was edited by TsTom on 2002-04-13 01:24
 
Upvote 0
Hi Guys

TsTom

please no need to asks its public domain out here and i know everone willlove your input, your doing wll mate keep it up, good stuff,

ill dig out my codes and post, once the XP Windows horrid thing behaves, never BSD ???? No but it crashes and say, bla bla blar and you have to click OK and re boot so whats the difference????

Odd that..
 
Upvote 0
Tom and RDGS-

Thank you for your responses. Someone has shown me how to do what I want to do using conditional formatting.
 
Upvote 0
sub conditionalcolor ()
' suppose you have data in say 11 columns and
15 rows then
dim c as range

for each c in range("a1:k15")
select case c
case 12
c.interior.colorindex = 42
case 15
c.initerior.colorindex = 35
case 6
c.interior.colorindex = 9
end select
next c
end sub


if you want to know the nos of different color which excel has assigned then download my file "Counting Color" from my download section. Here you can select second sheet which show all colorindex nos.
http://www.pexcel.com/download.htm

file nos is 3

ni****h desai
http://www.pexcel.com
 
Upvote 0

Forum statistics

Threads
1,214,523
Messages
6,120,031
Members
448,940
Latest member
mdusw

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top