+ Reply to Thread
Results 1 to 11 of 11

Highlight only cells with updates

  1. #1
    Registered User
    Join Date
    12-29-2016
    Location
    United State
    MS-Off Ver
    O365
    Posts
    36

    Highlight only cells with updates

    Hello All,

    I select / copy a range of data (may have text and numbers) from spreadsheet A and paste (as values) to spreadsheet B. Even though it will replace all the data, I would like to highlight (in yellow) only the cells that changed with new values. For example, if the cell had "300" and I replace with "300" it should not highlight.

    Is there a way to automatically highlights only the cells with changed values after I pasted the range ?

    Thank you.

  2. #2
    Forum Expert
    Join Date
    05-29-2020
    Location
    NH USA
    MS-Off Ver
    365
    Posts
    2,103

    Re: Highlight only cells with updates

    Can you paste the new data to a separate sheet? That way you can run code to ascertain the difference in value and highlight the different values.

  3. #3
    Valued Forum Contributor
    Join Date
    04-01-2015
    Location
    The Netherlands
    MS-Off Ver
    2003/2007/2010/2016/office 365
    Posts
    880

    Re: Highlight only cells with updates

    try

    Please Login or Register  to view this content.

  4. #4
    Forum Expert
    Join Date
    05-29-2020
    Location
    NH USA
    MS-Off Ver
    365
    Posts
    2,103

    Re: Highlight only cells with updates

    Here is another code to try if you go with a 2nd sheet approach:

    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by maniacb; 09-26-2020 at 10:52 AM. Reason: Add file

  5. #5
    Registered User
    Join Date
    12-29-2016
    Location
    United State
    MS-Off Ver
    O365
    Posts
    36

    Re: Highlight only cells with updates

    Hi,

    maniacb - I tried your code but not sure why it didn't work. I have attached a sample file with your code, the "Source" sheet with lines showing the range that I will select to copy and in red the changes that should be highlighted in yellow after comparing with the "Target" sheet.

    Vraag en antwoord - I also tried your code before and after pasting from "Source" to "Target", but got an error.

    Any idea why is not working? thank you.
    Attached Files Attached Files

  6. #6
    Forum Expert
    Join Date
    05-29-2020
    Location
    NH USA
    MS-Off Ver
    365
    Posts
    2,103

    Re: Highlight only cells with updates

    I had to update the sheet names and correct the highlighting

    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by maniacb; 09-26-2020 at 08:24 PM. Reason: Corrections to response

  7. #7
    Forum Guru
    Join Date
    04-23-2012
    Location
    New Jersey, USA
    MS-Off Ver
    Excel 365
    Posts
    2,409

    Re: Highlight only cells with updates

    Here is a non-looping macro that I think should also work...
    Please Login or Register  to view this content.

  8. #8
    Registered User
    Join Date
    12-29-2016
    Location
    United State
    MS-Off Ver
    O365
    Posts
    36

    Re: Highlight only cells with updates

    maniacb - your code works, but is highlighting the cells with no changes. I need to highlight the changes.

    Rick - your code works, so after applying the highlights I can paste the data (as value) to the "Target" sheet and send the updates by email.

    Thank you all for your help.

  9. #9
    Forum Expert
    Join Date
    05-29-2020
    Location
    NH USA
    MS-Off Ver
    365
    Posts
    2,103

    Re: Highlight only cells with updates

    I corrected the inaccurate highlighting with post #6

  10. #10
    Forum Guru
    Join Date
    04-23-2012
    Location
    New Jersey, USA
    MS-Off Ver
    Excel 365
    Posts
    2,409

    Re: Highlight only cells with updates

    Quote Originally Posted by elbarauljr View Post
    Rick - your code works, so after applying the highlights I can paste the data (as value) to the "Target" sheet and send the updates by email.
    I am not sure whether the last part of what you wrote above is asking for additional help or not. Did you want me to add that functionality to the code? If so, clarify for me exactly what the Target sheet should look like at the end (same as Source sheet but only for the non-blank cells? no color? something else?).
    Last edited by Rick Rothstein; 09-26-2020 at 08:37 PM.

  11. #11
    Registered User
    Join Date
    12-29-2016
    Location
    United State
    MS-Off Ver
    O365
    Posts
    36

    Re: Highlight only cells with updates

    No additional functionality is required, the code works prefect to highlight only the changes. I will mark post as solved,

    Thank you all for your help!

+ 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. dynamic cell updates based on highlight colour of previous cell
    By smytha6 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-27-2020, 05:31 AM
  2. Highlight and de-highlight specific blank cells with vba
    By gautamvats4796 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-23-2020, 10:25 AM
  3. Data updates in Sheet2 when there are updates in sheet1
    By pal004 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-10-2014, 10:20 AM
  4. Replies: 2
    Last Post: 10-24-2012, 11:47 AM
  5. Replies: 3
    Last Post: 03-04-2011, 06:01 AM
  6. Highlight updates in Data from Web
    By gilligan in forum Excel General
    Replies: 0
    Last Post: 05-21-2009, 04:39 PM
  7. Replies: 5
    Last Post: 05-27-2005, 02:05 PM

Tags for this Thread

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