适用于 Mac 的 VB 宏或 Office 插件

发布于 2024-09-16 05:35:18 字数 162 浏览 1 评论 0原文

目前我们为word开发了一个VB宏。当我们尝试在 Mac 上使用它时,它失败并显示消息“Mac 不支持 VB 宏”。 有没有办法在 mac 上使用 C# Office 插件? 我的要求是有一个简单的实用程序来将注释(从用户读取)添加到当前Word文档中的选定文本。还需要 OpenFileDialog 的功能。

Currently we developed a VB macro for word. While we tried to use it on mac it failed with message "VB Macro not supported in mac".
Is there a way to c# office add-in for mac?
My requirement is to have a simple utility to add comments(read from user) to the selected text in the current word document. Also need the functionality of the OpenFileDialog.

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

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

发布评论

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

评论(1

风蛊 2024-09-23 05:35:18

Mac Office 不(即不再)支持 COM/VBA 自动化。这意味着您将无法使用现有 Windows 加载项中的代码。

为了使 Mac Office 自动化,您必须使用 Automator Actions。我对这些不是很熟悉,但我相信它们的功能不如 Windows 版本的 VBA 对象模型丰富。

以下页面提供了一些可帮助您入门的操作:

Microsoft Office Automator 操作

更新:看来新的 Mac Office 2011 再次提供了对 VBA 自动化的一些支持。

Mac Office does not (i.e. no longer) support COM/VBA automation. This means that you won't be able to use code from your existing Windows add-in.

In order to automate Mac Office you would have to make use of Automator Actions. I am not very familiar with these, but I believe that they are less feature-rich than the VBA object model of the Windows edition.

The following page has some Actions to get you started:

Microsoft Office Automator Actions

Update: It seems that the new Mac Office 2011 comes again with some support for VBA automation.

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