![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
New Member
Join Date: Apr 2002
Posts: 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 |
|
|
|
|
|
#2 |
|
Board Regular
Join Date: Feb 2002
Location: Florida
Posts: 82
|
Not sure just what you want but have you tried Conditional Formating?
|
|
|
|
|
|
#3 |
|
Board Regular
Join Date: Feb 2002
Posts: 3,065
|
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!
__________________
Free Excel based Web Toolbar available here. Jack in the UK J & R Excel Solutions "making Excel work for you" |
|
|
|
|
|
#4 |
|
New Member
Join Date: Apr 2002
Posts: 6
|
Yes. Can you please provide me with the code.
Many Thanks |
|
|
|
|
|
#5 |
|
Board Regular
Join Date: Mar 2002
Location: Cincinnati, Ohio, USA
Posts: 6,824
|
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 ] |
|
|
|
|
|
#6 |
|
Board Regular
Join Date: Feb 2002
Posts: 3,065
|
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..
__________________
Free Excel based Web Toolbar available here. Jack in the UK J & R Excel Solutions "making Excel work for you" |
|
|
|
|
|
#7 |
|
New Member
Join Date: Apr 2002
Posts: 6
|
Tom and RDGS-
Thank you for your responses. Someone has shown me how to do what I want to do using conditional formatting. |
|
|
|
|
|
#8 |
|
Board Regular
Join Date: Feb 2002
Location: Ahmedabad Gujarat
Posts: 303
|
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 nishith desai http://www.pexcel.com |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|