Compare 2 versions of a code

This tool allows to compare 2 versions of a VBA code, a text, or any other type of code with the aim of highlighting differences.

The tool searches for differences line by line and then displays them with a colored background.


Example of comparing 2 versions of a code

VERSION 1VERSION 2
Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean)

If Target.Address = "$A$1" Then 'Si cellule A1

Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean)

If Target.Address = "$A$1" Then 'Si cellule A1

Cancel = True

myDate = datePicker(Range("A1"))

If myDate <> "" Then 'If date chosen by the user
myDate = datePicker(Range("A1"))

If myDate <> "" Then 'If date chosen by the user
Range("A1") = myDate
[A1] = myDate
End If

End If

End Sub
End If

End If

End Sub

Compare 2 versions of a code

Simply copy and paste the 2 versions of your code into the fields below and validate.

Version 1 of the code

Version 2 of the code