Rishi
Rishi

Reputation: 1060

Method to compare VBA change in xlsm file in Visual Studio 12

Just like we can compare .NET, javascripts files in Visual Studio and point out the exact changes that have been made between two separate versions, similarly is there a way to compare VBA of an xlsm file between two versions in Visual Studio 12?

Thanks in advance...

Upvotes: 0

Views: 566

Answers (1)

Andy Li-MSFT
Andy Li-MSFT

Reputation: 30372

Unfortunately, we cannot achieve that.

We cannot compare the .xlsm files with hte VBA code directly. We can only compare the text files in VS.

So, you could export all your VBA code into text for source control. Thus you can compare the different versions same as .NET, javascripts files.

There is an excel addin : https://github.com/hilkoc/vbaDeveloper.

It can export all your vba code automatically, as soon as you save your workbook. You can also easily import it again when you open a workbook.

Another workaround is comparing with other tools:

Other threads for your reference:

enter image description here

Upvotes: 2

Related Questions