+ Reply to Thread
Results 1 to 3 of 3

VBA: If row contains value than color fill active cells in row

  1. #1
    Forum Contributor
    Join Date
    08-07-2013
    Location
    mo
    MS-Off Ver
    Excel 2010
    Posts
    453

    VBA: If row contains value than color fill active cells in row

    I would like the macro to go down the sheet and if the value in the cell is "Greg" then color fill all the cells blue and Font color white the active cells in that row. All of these will be in column D(thats where text starts in all rows). So if D12 has "Greg" in it than it will color fill blue & font color white all the cells from "Greg" right until it gets to a cell the is "".How can I write this in VBA. Thanks for help.

  2. #2
    Forum Expert millz's Avatar
    Join Date
    08-14-2013
    Location
    Singapore
    MS-Off Ver
    Excel, Access 2016
    Posts
    1,694

    Re: VBA: If row contains value than color fill active cells in row

    Edit: sorry double post.
    Last edited by millz; 09-04-2013 at 07:51 AM.

  3. #3
    Forum Expert millz's Avatar
    Join Date
    08-14-2013
    Location
    Singapore
    MS-Off Ver
    Excel, Access 2016
    Posts
    1,694

    Re: VBA: If row contains value than color fill active cells in row

    This sounds like something that can be done with a simple filtering then formatting, which can also be done with conditional formatting. But if you must use VBA, try this:
    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. How to color-fill blank cells, then once data is entered cell is no-fill
    By hatemail13 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-28-2013, 07:57 PM
  2. [SOLVED]Fill Color (highlight cells) but not to print fill color
    By itszille in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-24-2012, 05:37 PM
  3. Replies: 3
    Last Post: 07-08-2010, 06:48 PM
  4. [SOLVED] Excel 2003 will not display color fonts or color fill cells
    By DaveC in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-11-2005, 12:06 PM
  5. [SOLVED] My excel 2003 wont let me fill cells with color or color the tabs.
    By trizog in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 02-23-2005, 01:58 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