VBA Source Control/Comparison

BrighterLater

Board Regular
Joined
Sep 16, 2005
Messages
114
Because all the VBA modules, class and form code are bundled in projects. I find that this makes it difficult to compare two versions of any code components.

The Addin project I am working on has 40 modules, 40 class modules and 25 forms (700 procedures in all, in a 4 Meg xls file). I find it difficult to maintain a development version of my code, in parallel to making fixes on older versions being used in production, and keep my modifications in synch.

What do people use on larger projects? (There's only me, so locking stuff to other team members isn't an issue.)

What I thought I might do was to write a bit of code that, for each release, exported all the application components to a release folder.
Code:
application.VBE.ActiveVBProject.VBComponents
I then thought I might use Apache Subversion to store these release folders and their files. This would enable me to compare textbase files, and for the graphical part of forms at least I'd know which were different.

But that all sounds a bit complicated; doesn't it? Is there a simpler way?

(I was going in that direction because in another part of my work I have a client server project: IDL client (which uses Eclipse as the DE and incorporates Subversion), and C++ Server using Eclipse/Subversion as the DE.)

I would welcome any comments. I am also aware that people can be very attached to their way of working so please can we enjoy any diversity of opinions and experience that might emerge; the last thing I want to do is to waste people's time in a heated debate.

Thanks - Mike
 

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest
Good luck. Please post back and let us know how you like it.
 
Upvote 0

Forum statistics

Threads
1,203,521
Messages
6,055,890
Members
444,831
Latest member
iceonmn

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