Mac的VB宏或Office插件 [英] VB macro or office addin for mac

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

问题描述

当前,我们为单词开发了一个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天全站免登陆