Is Excel VBA the same as VB.NET

前端 未结 2 909
眼角桃花
眼角桃花 2021-01-01 19:43

Is VB.NET the same language that is used in Excel 2003/2007 in the user editable code you can write in the backgrouund?

相关标签:
2条回答
  • 2021-01-01 20:02

    No, Excel 2003 and 2007 use Visual Basic for Applications, which is a variation of Visual Basic 6. This is an enormous change from VB.NET. See here for more details about specific differences.

    0 讨论(0)
  • 2021-01-01 20:10

    No, the only similarity between VBA and VB.NET is the similar-looking syntax.

    VBA is similar to Visual Basic 6, which is obsolete since about 1997 (?), so VBA is not a very modern language.

    VB.NET is a modern language, having the same capabilities as C#, but the syntax is terrible, so I personally prefer C#.

    VBA is an interpreted language, while VB.NET is compiled.

    If you are interested in Office programming, you might consider doing your next Office project in VB.NET and VSTO, which is the modern alternative to VBA.

    0 讨论(0)
提交回复
热议问题