Using the ActiveX buttons seems great because I don't need VBA from the Forms buttons to trigger code in .NET. (I also user hyperlinks from cells, but they're annoying because I have to change the sheet's col/row sizing to accommodate them, good to have both options).
But one problem I've had using ActiveX buttons is that it introduces challenges to my build process: The ActiveX buttons require a COM reference to Interop.MSForms. And the dotnet build command complains that it can't compile the solution.
Oddly though, Visual Studio builds it and runs just fine. So I have to use powershell to get VS to build the code for me:
$devenv = "C:\Program Files\Microsoft Visual Studio\2022\Professional\Common7\IDE\
devenv.com"
cd "C:\code\mySolutionDir"
$solution = Join-Path (Get-Location) "mySolution.sln"
& $devenv $solution /Build "Release"
etc.
Does anyone know a solution to this without requiring the COM references? Essentially I just want floating buttons (not cell links) that fire events in .NET.
Seems to work just fine this way. Sharing for reference and in case anyone else encounters this issue