+ Reply to Thread
Results 1 to 4 of 4

Help amending a macro code to colour change of an amendend cell from its original value

  1. #1
    Registered User
    Join Date
    09-11-2013
    Location
    UK
    MS-Off Ver
    Excel 2003
    Posts
    6

    Help amending a macro code to colour change of an amendend cell from its original value

    Hi,

    From a previous thread Re: Change background color of cell when data has been changed I have taken and pasted MarvinP's code into a spread sheet I am working on to create a macro to automatically change the fill color of the cell once a change has been made.

    I am looking to amend this macro slightly as follows:

    I would like the colour change to happen to an amendend cell, but only if i has a different value to its original.

    For example, i am using a list function in excel and if someone changes the cell value and then decides the original option was better, i would like the colour to clear.

    I hope this makes sense.

    Susan
    Last edited by susanhorn; 09-13-2013 at 05:34 AM.

  2. #2
    Valued Forum Contributor
    Join Date
    09-25-2011
    Location
    Eastbourne, England
    MS-Off Ver
    Excel 2010
    Posts
    1,089

    Re: Help amending a macro code to colour change of an amendend cell from its original valu

    Hi Susan

    The way that I would handle this is not to use the worksheet change routine but I would copy the original column to another column (and possible hide it). I would then use conditional formatting so that if the two cells were different, the original cell would be coloured.

    Let me know if you need assistance with the conditional formatting.

    Regards
    Alastair

  3. #3
    Registered User
    Join Date
    09-11-2013
    Location
    UK
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: Help amending a macro code to colour change of an amendend cell from its original valu

    Thank you for your reply Alastair.

    I am so sorry. I am extremely new to excel and wondered if you could advise how i would use conditional formatting to do this?

  4. #4
    Valued Forum Contributor
    Join Date
    09-25-2011
    Location
    Eastbourne, England
    MS-Off Ver
    Excel 2010
    Posts
    1,089

    Re: Help amending a macro code to colour change of an amendend cell from its original valu

    Hi Susan

    No need to apologise - we were all new to Excel once (it's just that for some of us it was a long time ago )

    I now have to apologise, as I cannot remember how to do it in Excel 2003 (well, as I said - it was a long time ago)

    I attach a spreadsheet showing what I mean and how to do it in Excel 2010. I seem to remember that there was a big change between the versions.

    I am now off to sunnier climes for a couple of weeks and will not be allowed on the forum, so if you cannot work out how to do the conditional formatting, I am sure someone will help.

    Regards
    Alastair
    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)

Similar Threads

  1. [SOLVED] how to change highlighted rows back to original colour
    By cfinch100 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 05-21-2013, 02:20 PM
  2. Replies: 11
    Last Post: 07-06-2012, 09:08 AM
  3. Using VB Code to change cell colour on back of formula
    By Twaddy in forum Excel Programming / VBA / Macros
    Replies: 19
    Last Post: 09-30-2010, 04:29 PM
  4. macro code for adding a cell in left of original cell?
    By gkeith in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 07-29-2010, 03:30 PM
  5. macro to change colour code
    By stevekirk in forum Excel General
    Replies: 1
    Last Post: 02-23-2007, 08:59 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