Compare 2 worksheets of same size and highlight changes in different colour

Jessie15

New Member
Joined
Jun 5, 2010
Messages
4
I am completely new to VBA. I have 2 worksheets of the same size (about 4000 rows), cells containing either text, time or date data. I need to compare the new worksheet with the old and highlight anything that has changed on the new with a different colour. I currently do the exercise in Excel by creating a 3rd worksheet and then using the formula IF('new'!B2='old'B2,TRUE,'old'!B2) but this isn't ideal as the data that has stayed the same is replaced by 'TRUE' and the worksheet is therefore only partially useful. Trying to figure it out in VBA and failing miserably.

Any help (in very simplistic language please!) would be greatly appreciated.
 
The conditional formatting I used was pretty simple, I don't know where you got the $W:$AR from.:)

First part - selected A2:10, Format>conditional formatting... cell value is. not equal , then =A13 and formatted as green.

Second part - selected A13:E21, Format>conditional formatting... cell value is. not equal , then =A2 and formatted as red.

An advantage of conditional formatting it it's dynamic, if you use (non-event) code then you'll have to run it every time you want to update things.
 
Upvote 0

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.

Forum statistics

Threads
1,215,580
Messages
6,125,652
Members
449,245
Latest member
PatrickL

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top