Working with VSTA Macros

You can edit and debug macros in Visual Studio.

This task shows you how to:


Before you begin:

If you want to edit VSTA macro projects, you need to have already installed (and run at least once) one of the following supported editions of Visual Studio: Visual Studio 2012, 2013, 2015 or 2017 (Pro or Community Edition).

If you want to install VSTA later, run the following program: VSTA\vsta_setup.exe, so long as you already installed a compatible editor if you want to both edit and run macros.

If you install a new version of Visual Studio, you will need to uninstall then reinstall the VSTA runtime software so that the new version of Visual studio is taken into account.

  • To run VSTA macros, the following software must be installed:
    • .NET 4.6.2

      If .NET 4.6.2 is not installed, the installer will display the following error message:

      .NET 4.6.2 is required to install VSTA 2017

      and you will not be able to continue the native app installation until you uncheck the I want to install Microsoft Visual Studio Tools for Applications 2017 option

    • VSTA 2017 (installed by the DS Installer if you checked the appropriate option)
    • Visual C++ Redistributable Packages for Visual Studio 2015 (x86 and x64) (installed by the DS Installer)
    • Visual C++ Redistributable Packages for Visual Studio 2012 Update 4 (x86 and x64) (if Visual Studio 2012 is installed)
    • Visual C++ Redistributable Packages for Visual Studio 2013 (x86 and x64) (if Visual Studio 2013 is installed)
    • Visual C++ Redistributable Packages for Visual Studio 2017 (x86 and x64) ( if Visual Studio 2017 is installed).
  • To edit and record VSTA macros, Visual Studio 2012, 2013, 2015 or 2017 (Pro or Community Edition) must be installed.
See Also
Accessing Visual Studio
Working with VSTA Projects