Share via

Is the Macro feature removed in Visual Studio 2022

BenTam-3003 686 Reputation points
2022-02-01T07:26:11.94+00:00

Dear All,

Is the Macro feature in Visual Studio 2019 removed (i.e., doesn't exist) in Visual Studio 2022?

Developer technologies | Visual Studio | Other
Developer technologies | Visual Studio | Other

A family of Microsoft suites of integrated development tools for building applications for Windows, the web, mobile devices and many other platforms. Miscellaneous topics that do not fit into specific categories.


Answer accepted by question author
  1. Viorel 126.8K Reputation points
    2022-02-01T08:37:32.997+00:00

    It seems that VBA macros were removed in Visual Studio 2012 (https://en.wikipedia.org/wiki/Microsoft_Visual_Studio#2012) . You can write extensions and Add-ins in C#.

    1 person found this answer helpful.

3 additional answers

Sort by: Most helpful
  1. Bryan B 6 Reputation points
    2022-04-28T18:13:10.557+00:00

    As stated, the Macro features were removed back in 2012. There have been a variety of paid-for and free replacements (none as good as the original in my opinion). There is a Microsoft provided extension you can install up to 2019, but it doesn't work in 2022 (I just tried). I'm currently in process of finding an alternate.

    I don't understand why Microsoft thinks this functionality isn't useful, or perhaps they just think third-party makes better options, but I was perfectly happy with the one they removed.

    1 person found this answer helpful.
    0 comments No comments

  2. Michel Chassey 0 Reputation points
    2026-03-10T21:46:12.1566667+00:00

    Hello all, my solution is a real kludge but it works for me.

    Here it is : I code in an emacs buffer. Fantastic ;) then paste it in an empty main.cpp (or whatever) file compile and let VS do its magic. Kudo to Stalhman . If my code works, save it and live to fight another day.

    Don't hate me too much.

    0 comments No comments

  3. Jeff Sipko 1 Reputation point
    2022-12-08T20:17:05.177+00:00

    In case, like me, you were thinking of the other $(variable) macros, Microsoft has renamed that feature in 2022 to MSBuild Properties. See this page for more info: https://learn.microsoft.com/en-us/visualstudio/ide/how-to-specify-build-events-csharp?view=vs-2022#macros

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.