+ Reply to Thread
Results 1 to 3 of 3

Macro that is column specific & changes cell color depending on cell contents

  1. #1
    Registered User
    Join Date
    08-25-2012
    Location
    Toronto, Ontario
    MS-Off Ver
    Excel 2010
    Posts
    1

    Macro that is column specific & changes cell color depending on cell contents

    Hi All,

    So i'm trying to create a macro that is specific to only a specific part of column F. More information can be added to column, so i would need the range to be dynamic.

    The data in column F uses VLOOKUP to populate the cells, however information can also be manually inputted to override the VLOOKUP data. Finally, at the bottom of column F there are cells containing the SUM Function, and these cells add data from various other parts of the spreadsheet.

    I am trying to provide a different color for the manually inputted cells, the VLOOKUP cells and leave any other cells in this column (containing text, the totals or empty) with a "No Fill Font".

    I would also like to initiate this Macro whenever a change is made to the cell. So if for example i was to manually enter a value in Column F, the macro will initiate automatically, without me having to press "Run Macro"

    Below is my code to-date.

    Please Login or Register  to view this content.
    Last edited by Cutter; 08-25-2012 at 01:48 PM. Reason: Added code tags

  2. #2
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: Macro that is column specific & changes cell color depending on cell contents

    @ zurispowell

    Welcome to the forum.

    Please notice that code tags have been added to your post(s). The forum rules require them so please keep that in mind and add them yourself whenever showing code in any of your future posts. To see instructions for applying them, click on the Forum Rules button at top of the page and read Rule #3.
    Thanks.

  3. #3
    Forum Expert
    Join Date
    11-29-2010
    Location
    Ukraine
    MS-Off Ver
    Excel 2019
    Posts
    4,168

    Re: Macro that is column specific & changes cell color depending on cell contents

    hi zurispowell, welcome to Excelforum, option to make it, please check attachment. Try to input values in F4:F165 on Sheet1. If colouring does not appear, run code "EnablEvents" and try again.
    Attached Files Attached Files

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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