适用于 mac 的 VB 宏或 office 插件 [英] VB macro or office addin for mac

查看:394
本文介绍了适用于 mac 的 VB 宏或 office 插件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

目前我们为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.

推荐答案

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

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.

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

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 操作

更新:新的 Mac Office 2011 似乎再次支持 VBA 自动化.

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

这篇关于适用于 mac 的 VB 宏或 office 插件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆