+ Reply to Thread
Results 1 to 6 of 6

Conditional Formatting

  1. #1
    Registered User
    Join Date
    11-11-2004
    Posts
    57

    Talking Conditional Formatting

    Hi All,

    I'm designing a holiday chart in work, and am using conditional formatting to colour cells.

    The problem is I have more than 3 conditions. Consequently I need to use a macro.

    I have the following code, but have a couple of questions.

    Please Login or Register  to view this content.
    My range select isn't working as I'd like? I need to select 2 individual ranges at the same time?

    G8:GE30 and G35:GH57 but based on what is entered above excel seems to be selecting G8:GH57? Can anyone tell me how to fix this?

    Also

    Can anyone advise how to include a second condition e.g. if the letter L is inserted in a cell, i'd like to shade it grey?

    I'd appreciate any help!
    Many thanks,
    John

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531
    Hey, you can Union the 2 ranges together like so:

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    11-11-2004
    Posts
    57
    Thanks for that, but can anyone help with conditional formatting for letters also?

    ie If I enter a letter I'd also like to shade the cell a particular colour?

  4. #4
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531
    Simply amend the Select Case as required.

    Please Login or Register  to view this content.

  5. #5
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    Quote Originally Posted by Jay3 View Post
    Thanks for that, but can anyone help with conditional formatting for letters also?

    ie If I enter a letter I'd also like to shade the cell a particular colour?
    It would have been better to give a better description, ie use of letters in the first post. Change the case select to

    Please Login or Register  to view this content.
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  6. #6
    Registered User
    Join Date
    11-11-2004
    Posts
    57

    Talking Conditional formatting

    Hi,

    I've got it to work was the suggested range and also the conditional formatting with the lettering now works.

    Strangely I have to put the case for the lettering before the case for the numbering, otherwise it doesn't function.

    Anyway the following code now works, so thanks for your help!

    Please Login or Register  to view this content.
    Thanks
    Last edited by Jay3; 11-10-2008 at 05:51 PM. Reason: Tagging

+ 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