简体   繁体   English

如何在 VS 代码编辑器中编写 Excel VBA 代码

[英]How to Write Excel VBA Code in VS Code Editor

Is it Possible to write and run Excel VBA code in VS code if yes so please tell me how.是否可以在 VS 代码中编写和运行 Excel VBA 代码,如果可以,请告诉我怎么做。

And is possible to make window based application in VS Code.并且可以在 VS Code 中制作基于 window 的应用程序。

Note that VS code is only an Editor which does not run any code you write there.请注意,VS 代码只是一个编辑器,它不会运行您在其中编写的任何代码。

It is not possible to run Excel VBA code in anything else than Microsoft Excel. Excel VBA 代码不可能在 Microsoft Excel 以外的任何地方运行。

You can write a stand alone application in any programming language you like and that has a library that supports Microsoft Excel files.您可以使用您喜欢的任何编程语言编写一个独立的应用程序,并且它有一个支持 Microsoft Excel 文件的库。 But to run VBA you need Excel.但是要运行 VBA,您需要 Excel。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM