
MICROSOFT OFFICE DEVELOPMENT
On migrating from VBA to VSTO
Brian Eastwood, Site Editor 12.05.2007
Rating: --- (out of 5)




|
The release of Visual Studio 2008 offers, among other things, new functionality for Visual Studio Tools for Office. That, in turn, may compel programmers to take a look at the VBA, or Visual Basic for Applications, implementations that they have and assess the pros and cons of migrating those apps to the new VSTO.
At the recent DevConnections conference in Las Vegas, Naveen Yajaman, a senior program manager on VSTO, offered some points to ponder regarding VBA application migrations.
Yajaman began by outlining what Visual Studio Tools for Office for VS 2008 offers that VBA does not -- namely, access to the .NET Framework 3.5, to managed controls and to Web services; the ability to consume SharePoint 2007 and other SOA interfaces; the ability to build UI elements modeled after Office 2007, and the availability of ClickOnce deployment for applications and components. Also of interest is the fact that VSTO, previously available only a
To continue reading for free, register below or login
To read more you must become a member of SearchWinDevelopment.com
');
// -->

s a downloadable add-in to VS 2005, is now part of the VS 2008 package.
Yajaman then suggested a few different options for migrating certain elements of VBA applications into Visual Studio Tools for Office. (They are ranked below in order from what he considered most ideal to least ideal.)
That said, Yajaman also provided some advice for analyzing VBA applications and the extent to which they should be migrated to Visual Studio Tools for Office.
For a VBA solution that is rather complex -- in terms of lines of code or application logic -- the best option is to call existing VBA code from new VSTO code, he said. The same is true of mission-critical VBA applications.
Om the other hand, if the deployment footprint of a VBA solution is wide, with lots of VBA code to be found in lots of different documents, then a full-scale migration to VSTO might make sense -- though, as Yajaman put it, "It's difficult to make that choice."
 |

|
|
 |
|
 |