Results 1 to 8 of 8

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

Threaded View

  1. #1
    Registered User
    Join Date
    09-26-2013
    Location
    England
    MS-Off Ver
    Excel 2003
    Posts
    33

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

    Sub testtest()
    Dim hh As Integer
    For hh = Range("A1:D6").Cells.Count To 1 Step -1    '''''' 24 to 1
    If Cells(hh) < 1 Then
    Range("A1:D6").Cells(hh).Font.Color = vbRed '''''' cells.value <1 change font color red (and blank cells no change)
    Else
    Range("A1:D6").Cells(hh).Font.Color = vbBlue ''''' cells.value >1 change font color blue (and blank cells no change)
    End If
    Next
    End Sub
    this code not work, please help ! for reference attached image ra1AhNO.jpg
    Last edited by austin123456; 10-08-2013 at 06:26 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