+ Reply to Thread
Results 1 to 4 of 4

Macro to change colour of cell based on finding a specific word in the cell

  1. #1
    Registered User
    Join Date
    03-05-2014
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    2

    Macro to change colour of cell based on finding a specific word in the cell

    Hi,

    I am looking for a macro that will look in a column range of G2:G500 and change the cell to red if the text in the cell reads 'Risk' but leave blank if states 'No Risk'

    Many Thanks
    Shelby761

  2. #2
    Forum Expert
    Join Date
    02-14-2009
    Location
    .
    MS-Off Ver
    ................
    Posts
    2,840

    Re: Macro to change colour of cell based on finding a specific word in the cell

    Seems Conditional Formatting would be better suited to this than VBA code...

  3. #3
    Registered User
    Join Date
    03-05-2014
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Macro to change colour of cell based on finding a specific word in the cell

    Cytop, the macro would be added to end of a current macro that collates data from 3 seperate sheets then finishing off with column G cells being coloured based on the text, I would conditionally format the report myself once I have run the macro, but its ideally for someone else to open run the macro and just print off the results without any other formatting involvement.

  4. #4
    Forum Expert
    Join Date
    02-14-2009
    Location
    .
    MS-Off Ver
    ................
    Posts
    2,840

    Re: Macro to change colour of cell based on finding a specific word in the cell

    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. Change colour of cells based on another cell's colour (Not value)
    By LTrain89 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-25-2013, 08:44 PM
  2. macro needed: change cell colour based on input in another column
    By weesteev in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 05-23-2012, 02:47 PM
  3. Colour change column chart based on cell colour
    By Alice21 in forum Excel General
    Replies: 11
    Last Post: 04-05-2011, 10:10 AM
  4. Trigger a macro based on cell colour change
    By hermithead in forum Excel General
    Replies: 1
    Last Post: 02-23-2010, 09:57 AM
  5. Macro to Change the colour of cell based on text
    By rakeshplb in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-26-2009, 04:17 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