+ Reply to Thread
Results 1 to 4 of 4

Change cell color based on a condition

  1. #1
    Forum Contributor
    Join Date
    04-11-2012
    Location
    Chicago, IL
    MS-Off Ver
    Excel 2010
    Posts
    245

    Change cell color based on a condition

    Hello -

    I am developing an add-in that performs a number of operations. One of those operations is to check whether or not the number of characters contained in any cell in column A exceeds 24. If so, I merely want to highlight those cells in yellow. I need to 'Do Until' every cell in column A that contains data has been validated. A sample workbook with some data is attached.

    Thanks for any help.

    Grilleman
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    09-19-2014
    Location
    Philadelphia,PA
    MS-Off Ver
    2010
    Posts
    54

    Re: Change cell color based on a condition

    Can you not use conditional formatting? just highlight all the cells and use the highlight cell rules, greater than 24

  3. #3
    Forum Contributor
    Join Date
    04-11-2012
    Location
    Chicago, IL
    MS-Off Ver
    Excel 2010
    Posts
    245

    Re: Change cell color based on a condition

    No because this procedure is going to be part of an Add-In that will be used to perform the same operation on thousands of workbooks that are in distribution to users. All of the workbook are based on a single template so the column references will always be same no matter which workbook I am validating. Make sense?

  4. #4
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Change cell color based on a condition

    Maybe:

    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)

Similar Threads

  1. change textbox color on subform based on condition on another form
    By rlsublime in forum Access Programming / VBA / Macros
    Replies: 1
    Last Post: 01-16-2014, 10:04 PM
  2. [SOLVED] How to change sheet tab color based on its condition
    By saesaria in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-20-2013, 12:32 PM
  3. Replies: 3
    Last Post: 10-28-2011, 04:47 AM
  4. [SOLVED] Change row color based on condition of celss
    By B G in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-28-2006, 04:00 PM
  5. [SOLVED] Color Change in chart based of condition
    By KRT in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 07-01-2005, 08:05 AM

Tags for this Thread

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