+ Reply to Thread
Results 1 to 7 of 7

cell values base on cell color

  1. #1
    Forum Contributor
    Join Date
    02-14-2010
    Location
    oman
    MS-Off Ver
    Excel 2003
    Posts
    384

    Post cell values base on cell color

    Please Login or Register  to view this content.
    dear friends above macro work fine.i need to add some color reference code with above macro.

    01.column "G" =TP , column "H" = 150D & Column "L" value more than 135 then cell color red.
    02.column "G" =TP , column "H" = 300D & Column "L" value more than 150 then cell color green.
    03.column "G" & "H" other than above & Column "L" value more than 225 then cell color yellow.

    pls make this for me thanks.
    Last edited by johncena; 02-23-2010 at 05:01 AM.

  2. #2
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: cell values base on cell color

    Try
    Please Login or Register  to view this content.
    P.S.
    Dont think its the correct cells I have coloured
    but it should be easy to put in say an If statement in your Select Statement
    Last edited by Marcol; 02-23-2010 at 01:27 AM. Reason: P.S. Added

  3. #3
    Forum Contributor
    Join Date
    02-14-2010
    Location
    oman
    MS-Off Ver
    Excel 2003
    Posts
    384

    Re: cell values base on cell color

    thank u very much Marcol.it's work.thanks a lot again......

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

    Re: cell values base on cell color

    Crosspost:
    http://www.mrexcel.com/forum/showthread.php?t=450299

    I thought this was solved? You should use regular Conditional Formatting instead of VBA.
    _________________
    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!)

  5. #5
    Forum Contributor
    Join Date
    02-14-2010
    Location
    oman
    MS-Off Ver
    Excel 2003
    Posts
    384

    Unhappy Re: cell values base on cell color

    Quote Originally Posted by Marcol View Post
    Try
    Please Login or Register  to view this content.
    P.S.
    Dont think its the correct cells I have coloured
    but it should be easy to put in say an If statement in your Select Statement
    Quote Originally Posted by JBeaucaire View Post
    Crosspost:
    http://www.mrexcel.com/forum/showthread.php?t=450299

    I thought this was solved? You should use regular Conditional Formatting instead of VBA.
    sorry friend.i have done mistake.this is not solved.above post not included my conditions.(135< ,150< ,225<).he just add colors to cell.

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

    Re: cell values base on cell color

    Try this:
    Please Login or Register  to view this content.

  7. #7
    Forum Contributor
    Join Date
    02-14-2010
    Location
    oman
    MS-Off Ver
    Excel 2003
    Posts
    384

    Re: cell values base on cell color

    [QUOTE=JBeaucaire;2259043]Try this:
    [code]Option Explicit

    Thanks friends.it's work,thanks a lot again....

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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