6
At work I have a large code base written in VBA (approximately 13 active projects), both for Access or Excel applications.
I’ve been trying to refactor some things, but several factors are making my job difficult, like:
- The IDE that accompanies the VBA is very old (based on Visual Studio 6, 1998)
- VBA itself has many limitations compared to languages like C# and Java
- VBA projects are aggregated to the file
.xls
or.mdb
, which makes it difficult to use within version control software (Git) - We have more than one developer, which makes working on projects simultaneously unfeasible, because we can’t get
I try in view of these points, I am thinking of alternatives to circumvent these problems causing the least impact.
It is not feasible to migrate all projects at once to a new architecture due to the complexity of some.
I have tried to compile Dlls in C# and link them to VBA from COM
, but it brought more trouble than it helped.
Question
There is some way to gradually migrate these solutions in VBA, mixing what already exists today with a new architecture ?
Or in the worst case, where I will have to stay with the VBA, how to change the VBA’s default IDE to some more modern that maintains the integration with Office?
For this purpose I have used the
Microsoft.Office.Interop.Excel
, migrating code gradually fromVBA
forC#
. You are aware of this namespace?– Caffé
@Caffé to perform some Access routines using the
Interop
. If it were not he would have freaked out to include new features.– gmsantos
Use the Rubberduck to improve the VBA IDE.
– danieltakeshi