Error Checking in Excel
Thanks Thanks:  0
Likes Likes:  0
Results 1 to 8 of 8

Thread: Colored Cells

  1. #1
    New Member
    Join Date
    Apr 2002
    Posts
    6
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    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. #2
    Board Regular
    Join Date
    Feb 2002
    Location
    Florida
    Posts
    82
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    Not sure just what you want but have you tried Conditional Formating?

  3. #3
    Board Regular
    Join Date
    Feb 2002
    Posts
    3,184
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    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. #4
    New Member
    Join Date
    Apr 2002
    Posts
    6
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    Yes. Can you please provide me with the code.

    Many Thanks

  5. #5
    Board Regular
    Join Date
    Mar 2002
    Location
    Cincinnati, Ohio, USA
    Posts
    6,824
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    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. #6
    Board Regular
    Join Date
    Feb 2002
    Posts
    3,184
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    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. #7
    New Member
    Join Date
    Apr 2002
    Posts
    6
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    Tom and RDGS-

    Thank you for your responses. Someone has shown me how to do what I want to do using conditional formatting.



  8. #8
    Board Regular
    Join Date
    Feb 2002
    Location
    Ahmedabad Gujarat
    Posts
    303
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    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


Some videos you may like

User Tag List

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •