+ Reply to Thread
Results 1 to 5 of 5

Color Cell after value entered

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    11-27-2009
    Location
    Austin, Texas
    MS-Off Ver
    Excel 2013 & 2016
    Posts
    409

    Color Cell after value entered

    I am trying to color the cell yellow after the value is entered, it's not working.
    The value goes in just fine but does not color the cell.
    Thanks

                    wb2.Sheets(c.Offset(, 2).Value).Cells(20, Col) = c.Value
               ElseIf UCase(c.Offset(, 1)) <> "LWOP-RG" And UCase(c.Offset(, 1)) <> "ABS" Then
                    wb2.Sheets(c.Offset(, 2).Value).Cells(23, Col) = c.Value
               ElseIf UCase(c.Offset(, 1)) = "PTO" Or UCase(c.Offset(, 1)) = "Floating Holiday" Then
                    wb2.Sheets(c.Offset(, 2).Value).Cells(23, Col) = c.Value.Interior.ColorIndex = 6
    ==========
    Bigroo1958
    Austin, Texas
    ==========

  2. #2
    Forum Expert mrice's Avatar
    Join Date
    06-22-2004
    Location
    Surrey, England
    MS-Off Ver
    Excel 2013
    Posts
    4,967

    Re: Color Cell after value entered

    Try

    wb2.Sheets(c.Offset(, 2).Value).Cells(23, Col) = c.Interior.ColorIndex = 6
    Martin

  3. #3
    Forum Contributor
    Join Date
    11-27-2009
    Location
    Austin, Texas
    MS-Off Ver
    Excel 2013 & 2016
    Posts
    409

    Re: Color Cell after value entered

    Thanks for the reply, sorry, no, only the value, no coloring!

  4. #4
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,755

    Re: Color Cell after value entered

    How about
     wb2.Sheets(c.Offset(, 2).Value).Cells(23, Col).Interior.ColorIndex = 6

  5. #5
    Forum Contributor
    Join Date
    11-27-2009
    Location
    Austin, Texas
    MS-Off Ver
    Excel 2013 & 2016
    Posts
    409

    Re: Color Cell after value entered

    Thanks for the reply Fluff13, sorry, no, only the value, no coloring!

+ 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: 1
    Last Post: 11-07-2017, 02:24 PM
  2. [SOLVED] Changing font color in a row when a value is entered into a specific cell
    By A Noid in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 12-02-2015, 06:02 PM
  3. Replies: 1
    Last Post: 03-18-2015, 03:37 PM
  4. Replies: 4
    Last Post: 05-17-2013, 10:37 AM
  5. Replies: 10
    Last Post: 10-07-2012, 04:50 PM
  6. Replies: 2
    Last Post: 08-09-2011, 09:54 AM
  7. Changing cell color once text is entered
    By KRayKeeling in forum Excel General
    Replies: 1
    Last Post: 08-05-2007, 11:36 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