3 4
You can extend Microsoft Visio in a multitude of ways—using MicrosoftVisual Basic for Applications (VBA) code, using a stand-alone executable, or using a Visio add-on (a Visio Solutions Library, or VSL).
And beginning with Microsoft Visio 2002, you can also extend Visio and build your custom solutions using Component Object Model (COM) add-ins.
A COM add-in is a dynamic-link library (DLL) that is specially registered for loading by Visio and other Microsoft Office or Office XP applications, and contains a COM object that implements the IDTExtensibility2 COM interface. Because Visio and other Office applications support the COM add-in architecture, you can use the same tools to develop add-ins for other Office applications.
Note
You have several options for creating your own COM add-ins: