VBA 的未来是什么?

发布于 2024-07-26 16:10:30 字数 452 浏览 12 评论 0 原文

通过新的 2007 版 MS-Office,Microsoft 开始使用 VBA 来“威胁” href="http://en.wikipedia.org/wiki/VSTA#Future" rel="nofollow noreferrer">VSTA。 由于 VBA 非常常用,您认为未来 3-5 年脚本开发的前景如何?

或者,会不会像VB6一样突然被杀掉?

Autodesk 在听说后也放弃了它(有点)来自MS的消息。

With the new 2007 versions of MS-Office, Microsoft started to "threaten" VBA with VSTA. Since VBA is pretty commonly used, what do you believe its future is in terms of scripting development for the next 3-5 years?

Or, will it be killed suddenly, like VB6?

Autodesk also dropped it (kind of) upon hearing news from MS.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

Oo萌小芽oO 2024-08-02 16:10:30

我建议VB6不会突然被杀死。 也许是官方 MS 支持,但 VB6VBA 在这里。

与任何拥有广泛用户/客户/第三方供应商基础的技术一样,VBA 作为脚本技术需要很长时间才能消失。 我想象它的后继者需要数年时间才能完全超越 VBA。

I'd suggest that VB6 wasn't killed suddenly. Official MS support, perhaps, but still the community is alive for both VB6 and VBA here on SO.

As with any technology with a WIDE user/customer/3rd party vendor base, it will take a long time for VBA as a scripting technology to fade away. I would imagine that it will take years for its successor to fully overtake VBA.

中性美 2024-08-02 16:10:30

同意 Dick Kusleika 关于部署的

观点 弃用 VBA 的问题是:

  1. 易于部署
  2. Visual Studio - 另一种值得学习的 IDE
  3. 对于工作关键型 VBA 应用程序的庞大基础,.NET 不会添加任何内容,为什么要添加花费精力和时间迁移?
  4. 使用 VBA,非开发人员可以在 Excel/Word 等中快速构建有用的应用程序。而使用 .NET/VSTO 则无法做到这一点。

Agree with Dick Kusleika about deployment

The problems with deprecating VBA are:

  1. Ease of deployment
  2. Visual Studio - another IDE to learn
  3. For the huge base of working, business-critical VBA apps, where nothing will be added by .NET, why would one want to spend the effort and time migrating?
  4. With VBA, non-developers can knock up quick useful applications within Excel/Word etc. You can't do this with .NET/VSTO.
逐鹿 2024-08-02 16:10:30

在我看来,它会死,但不会突然死。 Excel 曾经有一种名为 XLM 的宏语言 - 基本上是一种增强型键盘播放功能。 XLM 仍然受到支持,而且很容易就有十几个人在使用它。 这就是为什么我认为 VBA 将会存在相当长一段时间。 它不会被更新、支持,甚至可能不会被承认,但它将会可用。

MS 迟早会将 .NET 与 Office 应用程序集成,并且更少的人会关心 VBA。 现在,我可以将一些 VBA 放入 Excel 电子表格中,将其发送到客户端,然后部署就完成了。 我可以告诉 IT 部门这是一个带有宏的 Excel 工作簿,他们不会感到受到威胁,因为他们不知道更多。 当 .NET 具有如此简单的部署选项时,我将使用它。 那一天终将到来,VBA 将慢慢开始消失。

It will die, IMO, but not suddenly. Excel used to have a macro language called XLM - basically a keyboard playback on steroids. XLM is still supported, and there's easily a dozen people who use it. That's why I think VBA will be around for quite a while. It won't be updated, supported, and maybe not even acknowledged, but it will be available.

Sooner or later MS will integrate .NET with Office apps and fewer people will care about VBA. Right now, I can put some VBA in an Excel spreadsheet, send it to a client, and deployment is done. I can tell the IT department it's an Excel workbook with macros, and they don't feel threatened because they don't know any better. When .NET has deployment options that simple, I'll use it instead. That day will come and VBA will slowly start fading away.

离去的眼神 2024-08-02 16:10:30

语言已经改变& 完成事情的方式(即拖/放表单、创建宏、修改几行然后就完成了)也会改变。

它不会仍然是一个非开发人员会发现易于使用的工具。

基本内容(工作簿、工作表、范围)等的对象模型应保持相同。
将添加一系列新的东西 这将改变对象模型& 因此新的学习(例如功能区界面)

不要忘记,.net 带来了它自己的概念/复杂性。

The language has changed & the way things were done (i.e. drag/drop form, create a macro, modify a few line & you are done) will also change.

It won't remain a tool, which a non-developer will find easy to use.

Object model should remain same for basic stuff (Workbook, Worksheet, Range) etc.
New set of things will get added & that will change the object model & hence new learning (e.g. Ribbon Interface)

Not to forget, .net brings in its own concepts/complexity.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文