Results 1 to 8 of 8

How to USE """"" cells count """"" change font color

Threaded View

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

    Re: How to USE """"" cells count """"" change font color

    Maybe:

    Sub austin123456()
    Dim i As Integer
    Dim x As Integer
    For x = 1 To 6
    For i = 1 To 6
    If Sheets("Sheet1").Cells(i, x).Value - Sheets("Sheet2").Cells(i, x).Value < 1 Then
        Sheets("Sheet1").Cells(i, x).Font.ColorIndex = 3
    End If
    If Sheets("Sheet1").Cells(i, x).Value - Sheets("Sheet2").Cells(i, x).Value > 1 Then
        Sheets("Sheet1").Cells(i, x).Font.ColorIndex = 5
    End If
    Next i
    Next x
    End Sub
    Last edited by JOHN H. DAVIS; 10-08-2013 at 01:51 PM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Excel 2010 -- "Visual Basic" "Macros" and "Record Macro" all disabled.
    By NicholasL in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-07-2017, 06:11 AM
  2. [SOLVED] How to Count number of "Error" and "OK" after the word "Instrument" found in table row
    By eltonlaw in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-17-2012, 06:26 AM
  3. Replies: 5
    Last Post: 10-12-2010, 06:46 AM
  4. Replies: 5
    Last Post: 06-26-2006, 09:23 PM
  5. Replies: 7
    Last Post: 05-13-2006, 05:02 PM

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