Vba Programming For Microsoft Project 98 Through 2010 With An Introduction To Vsto -

| Feature | VBA | VSTO (C#/VB.NET) | | :--- | :--- | :--- | | Deployment | Embedded in .mpp or .mpa | ClickOnce or MSI (separate add-in) | | Security | Macro trust center | Full .NET Code Access Security | | Performance | Interpreted | Compiled JIT | | Threading | Single-threaded, blocking | Asynchronous possible | | Ribbon Customization | Limited (XML manually) | Visual Ribbon Designer | | Access to OS/DB | Through Shell or ActiveX | Full .NET Framework |

You don’t have to choose entirely. In Project 2010, you can call existing VBA macros from a VSTO add-in using the Run method: | Feature | VBA | VSTO (C#/VB

' --- Your cleanup logic here --- Call ListSummaryTasks ' example subroutine ' --- End cleanup --- | Feature | VBA | VSTO (C#/VB