+ Reply to Thread
Results 1 to 5 of 5

VBA Code For Conditional Formatting, cell that Contains...

  1. #1
    Registered User
    Join Date
    05-30-2014
    Posts
    17

    VBA Code For Conditional Formatting, cell that Contains...

    Hello,

    I have a VBA code as followed and i will like to add on some VBA code which allows me to do conditional formatting of those cells that contains "No" and highlight it in red. I have tried but failed to write something that works. Can someone help me to this?

    Please Login or Register  to view this content.

  2. #2
    Valued Forum Contributor adyteo's Avatar
    Join Date
    01-10-2013
    Location
    Calgary
    MS-Off Ver
    Excel 2010
    Posts
    540

    Re: VBA Code For Conditional Formatting, cell that Contains...

    try to embed this:
    Please Login or Register  to view this content.
    You need to replace "Your Range Here" with the range of cells where "No" would exist
    Click on the star if you think I helped you

  3. #3
    Registered User
    Join Date
    06-10-2014
    Posts
    15

    Re: VBA Code For Conditional Formatting, cell that Contains...

    Hi,

    If you only wish to highlight cells containing "No" then you can use conditional formatting. That would be easier.

    Anyway, this is a very basic code which you can tweak further to meet your requirement.

    Please Login or Register  to view this content.
    Last edited by shopaholic; 06-17-2014 at 03:10 PM.

  4. #4
    Registered User
    Join Date
    05-30-2014
    Posts
    17

    Re: VBA Code For Conditional Formatting, cell that Contains...

    Hi Adyteo,

    Thank you so much. It works.

  5. #5
    Registered User
    Join Date
    05-30-2014
    Posts
    17

    Re: VBA Code For Conditional Formatting, cell that Contains...

    Hi Shopaholic,

    Thanks for that, will be useful for me

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 5
    Last Post: 12-07-2013, 02:21 PM
  2. VBA code to allow more than 3 conditional formatting
    By DannyJ in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-24-2012, 10:45 AM
  3. Conditional Formatting Code - Deletes Wrong Conditional Format
    By RSpecianJr in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-29-2010, 10:53 AM
  4. Conditional Formatting with code
    By rlcohen70 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-14-2008, 04:51 AM
  5. conditional formatting:How can I rate a cell 1-5 and colour code it?
    By treetop40 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-09-2005, 08:05 AM

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