+ Reply to Thread
Results 1 to 4 of 4

VB Conditional Formatting Question??

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

    Talking VB Conditional Formatting Question??

    Can anyone help with me with the attached.

    This code basically uses conditional formatting in an excel spreadsheet as I cannot not use the conditional formatting option as there are more than 3 conditions!

    It works fine if you enter the values 1 at a time, however, where people use the copy function, errors flash up, can anyone tell me why this is and what I need to do to fix it?

    Please Login or Register  to view this content.
    Thanks
    Jay3

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: VB Conditional Formatting Question??

    maybe
    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

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

    Re: VB Conditional Formatting Question??

    Thanks for the code, it kind of works but there are a couple of issues.


    It doesn't seem to recognise the two distinct ranges (Issue 1)

    When you delete a value, it doesn't remove the formatting (Issue 2)

    Can you help with this?

  4. #4
    Forum Expert
    Join Date
    03-31-2009
    Location
    Barstow, Ca
    MS-Off Ver
    Excel 2002 & 2007
    Posts
    2,164

    Re: VB Conditional Formatting Question??

    Quote Originally Posted by Jay3 View Post
    Thanks for the code, it kind of works but there are a couple of issues.


    It doesn't seem to recognise the two distinct ranges (Issue 1)

    When you delete a value, it doesn't remove the formatting (Issue 2)

    Can you help with this?
    To remove the formatting put icolor = 0 in the Case Else

    If the Union() doesn't work then break it into separate checks.
    Please Login or Register  to view this content.

+ 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