You can access the Excel scripting engine from C#, but this is more of a case of C# supporting Excel than the other way around. (And you will really not want to do it if you just have to read and save data in excel files.)
I doubt they went away from VBA. While I do use C# any time I can, I can’t say the same thing for Excel. I do know there are ways to do interop, and it’s not great. Office file formats and interop have always been… awful.
Doesn’t Excel mainly use C#?
You can access the Excel scripting engine from C#, but this is more of a case of C# supporting Excel than the other way around. (And you will really not want to do it if you just have to read and save data in excel files.)
Excel mainly uses VBA.
I doubt they went away from VBA. While I do use C# any time I can, I can’t say the same thing for Excel. I do know there are ways to do interop, and it’s not great. Office file formats and interop have always been… awful.
They actually recently added python support.