Results 1 to 8 of 8

Highlight cell with Fill & Font Colour

Threaded View

  1. #1
    Registered User
    Join Date
    04-06-2016
    Location
    malaysia
    MS-Off Ver
    MS office 2013
    Posts
    12

    Unhappy Highlight cell with Fill & Font Colour

    Hi,

    I am working out on the IF & ELSE project. The codes created below are correct but I am not sure how to adjust the Font.

    Basically i need the result of "Insufficient" to be filled with a colour on its Cell.
    Fill Colour: Red
    Font Colour Yellow & also Bold

    Please assist.
    Below are the codings:


    lastrow = Sheets("PO Summary").Cells(Rows.Count, 2).End(xlUp).Row
        erow = 4
        
    For x = 4 To lastrow
      
     Worksheets("PO Summary").Cells(x, 9).FormulaR1C1 = "=(RC6 - RC7)/RC6"
     
         If Worksheets("PO Summary").Cells(x, 7) <= 0 Then
            Worksheets("PO Summary").Cells(x, 8) = "Insufficient"
       
        Else
            Worksheets("PO Summary").Cells(x, 8) = "Sufficient"
     
        End If
    
    erow = erow + 1
    
    Next x
    
    End Sub
    Last edited by FDibbins; 04-25-2016 at 10:14 AM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Font/Cell fill colour issues
    By eBopBob in forum Excel General
    Replies: 1
    Last Post: 03-30-2014, 10:21 AM
  2. Replies: 1
    Last Post: 09-12-2013, 02:09 PM
  3. Copy font/colour/fill of cells from one sheet into another.
    By stacesil in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-18-2013, 07:59 PM
  4. Replies: 6
    Last Post: 03-22-2012, 06:29 AM
  5. Command Buttons for Fill Colour and Font Colour
    By Gos-C in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 07-14-2011, 07:11 AM
  6. Multiple Fill Color & Font Colour icons on menu bar
    By robertguy in forum Excel General
    Replies: 3
    Last Post: 02-05-2008, 10:46 AM
  7. Criteria - Automatic Change Font or Fill Colour
    By stevembe in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-04-2005, 12: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