+ Reply to Thread
Results 1 to 3 of 3

VBA code to color cells based on 5 cells values

  1. #1
    Registered User
    Join Date
    09-23-2012
    Location
    So-Cal
    MS-Off Ver
    Excel 2007
    Posts
    2

    VBA code to color cells based on 5 cells values

    Hi everyone...

    New here and kinda new to VB as well, and I need a little help...

    I have 5 cells in one row that are all either true or false.
    I need to make sure that in these 5 cells only one of them is returning a True also that least one of them is returning a true.
    If there is more then one true or if none are true I want to turn the A1:A3 cells red

    Here is what I have... I and its not working so I know it not right

    Please Login or Register  to view this content.

    Any help is greatly appreciated

    thanks in advance!!!
    Last edited by Leith Ross; 09-24-2012 at 12:31 AM. Reason: Added Code Tags

  2. #2
    Forum Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,113

    Re: VBA code to color cells based on 5 cells values

    Hello MoeMuny,

    Wellcome to the Forum. I noticed that you have posted your thread without complying with the Forum rules,
    where it is clearly stated how you should post any Code.

    Leith Ross was kind enough to do it for you this time, but please abide by the rules of this Forum. Thank you.

    Instead of Code, why don't you just use Conditional Formatting. If you could upload a sample WorkBook, we could help you with that.
    Please consider:

    Be polite. Thank those who have helped you. Then Click on the star icon in the lower left part of the contributor's post and add Reputation. Cleaning up when you're done. If you are satisfied with the help you have received, then Please do Mark your thread [SOLVED] .

  3. #3
    Registered User
    Join Date
    09-23-2012
    Location
    So-Cal
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: VBA code to color cells based on 5 cells values

    Winon,
    As I said, I'm new here and I don't know how to post the code tags, I will look into it for future posts.

    Thanks Leith Ross for helping a newb out!!

    Conditional formatting will not work for me in this situation it needs to be in VBA, but thanks!

    I have been able to get the first part working with this formula

    Please Login or Register  to view this content.
    Last edited by MoeMuny; 09-24-2012 at 02:43 AM.

+ 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