VBA VS. VSTO what is the difference, should I upgrade?

前端 未结 4 1065
太阳男子
太阳男子 2021-02-07 01:00

I am a huge fan of the KISS principle (Keep it simple) and a long time VBA for excel user. However all the articles I can find on VBA vs. VSTO (Visual Studio Tools for Office) s

4条回答
  •  别跟我提以往
    2021-02-07 01:14

    VBA in Excel gives you the advantage of having fast results between editing your code and running your code. Because you are a good VBA programmer, you could live without the super feature from Visual Studio (intellisense, try-catch-fanally, inherits, every .NET objects, multi-threading ...)

    VSTO is a way to work inside a very good IDE (Visual Studio), but i am afraid you will waste a lot of time switching between VB.NET and your Excel. It is not as direct as your VBA inside your Excel.

    If your main purpose of programming is to stay inside your Excel file, then stay with VBA. If you really need to work outside your excel file or if you want to do something that doesn't necessary depend on your excel files, maybe you could consider VSTO. Beside, VSTO is pretty new and documentation may not be complete.

    I would stay with VBA if I were you. THIS IS MY HUMBLE OPINION. I wrote a little comparative between VBA and VB.NET (VSTO): Here's Difference between VB.NET and VBA!

提交回复
热议问题