+ Reply to Thread
Results 1 to 6 of 6

Question re Conditional Formatting

  1. #1
    Registered User
    Join Date
    05-12-2007
    Posts
    42

    Question re Conditional Formatting

    Hi,

    Looking to highlight a cell red when condition is true.

    I have a workbook than conatains two sheets, The first sheet (sheet1) is my frontpage and the second sheet (sheet2) is my data sheet.

    Sheet2 contains a list of employee names ans sheet1 has a combo box and populates cell A2 in sheet 1 with names.

    I have twelve employees who are temporary and when I select them from the combo box I want cell A2 to fill Red in colour. I used conditional formatting with the equal to function, but it only lets me enter one name or three conditions.

    Basically I want to use the same fill colour for each employee who is temporary. Thanks

  2. #2
    Forum Contributor WinteE's Avatar
    Join Date
    04-07-2007
    Location
    Netherlands
    Posts
    544
    Posting your file would help to make it clear to us.
    Just keep it simple !


    http://www.excelguide.eu
    In English as well as in Dutch

  3. #3
    Registered User
    Join Date
    05-12-2007
    Posts
    42
    The highlighted cells (sheet2) are the temporary employees, thanks.
    Attached Files Attached Files

  4. #4
    Forum Contributor
    Join Date
    03-13-2005
    Posts
    6,195
    Quote Originally Posted by 007juk
    The highlighted cells (sheet2) are the temporary employees, thanks.
    Hi,

    in the training sheet tab, rightmouse and select View Code

    copy
    Please Login or Register  to view this content.
    to there, watch for duplicate first and last lines.

    That should highlight your A2 cell as requested.

    ---
    Si fractum non sit, noli id reficere.

  5. #5
    Registered User
    Join Date
    05-12-2007
    Posts
    42
    Bryan,

    Many thanks that code done the trick, Don't have any experience with VBA, but was the code basically looking in sheet2 for a cell with the colour Red, similar to a vlookup. If I wanted to change the colour how would I do that is there a list that assigns each colour with a number.

    I have another query re workbook you might be able to help me with.

    1. Some types of training don't require a refresher course, how can I populate column 'D' with the following text (not required)rather than populating with a refresher date.
    Can I do this - use conditional formatting. Just enter 'not required' in the cell within the data sheet and format accordingly.

    2. Certain employees don't receive training due to their post. How can I populate column 'D' with a particular colour to indicate this.

    Thanks again.

  6. #6
    Forum Contributor
    Join Date
    03-13-2005
    Posts
    6,195
    Quote Originally Posted by 007juk
    Bryan,

    Many thanks that code done the trick, Don't have any experience with VBA, but was the code basically looking in sheet2 for a cell with the colour Red, similar to a vlookup. If I wanted to change the colour how would I do that is there a list that assigns each colour with a number.

    I have another query re workbook you might be able to help me with.

    1. Some types of training don't require a refresher course, how can I populate column 'D' with the following text (not required)rather than populating with a refresher date.
    Can I do this - use conditional formatting. Just enter 'not required' in the cell within the data sheet and format accordingly.

    2. Certain employees don't receive training due to their post. How can I populate column 'D' with a particular colour to indicate this.

    Thanks again.
    Hi,

    for the colours see http://www.mvps.org/dmcritchie/excel/colors.htm
    the 3 = Red and the 15 = light gray, these can be any value required.

    For column D, you could use an If that firstly sets 'not required' for the correct user position, or sets 'not required' for the course name, or selects / calculates the refresher date.

    Not sure why you would need to further colour that, but you could then Conditionally format the column to your colour if Cell Value = 'not required'

    hth
    ---

+ 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