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#.
Is the Macro feature removed in Visual Studio 2022
Dear All,
Is the Macro feature in Visual Studio 2019 removed (i.e., doesn't exist) in Visual Studio 2022?
2 additional answers
Sort by: Most helpful
-
Bryan B 1 Reputation point
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.
-
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