Vba Programming | For Microsoft Project 98 Through 2010 With An Introduction To Vsto [work]
Private Sub Project_Open(ByVal pj As Project) ' Works in Project 2000 through 2010 pj.StatusDate = Date MsgBox "Status date set to " & Date End Sub
Conversely, from VBA you can call .NET code via COM-visible assemblies, but that is far more complex. For most users, a gradual migration—keeping legacy VBA for simple tasks and building new features in VSTO—is the most pragmatic path. Private Sub Project_Open(ByVal pj As Project) ' Works
Inefficient Code (Avoid this):
namespace ProjectAddIn1
