解决方法在Word差距为Mac 2011 VBA对象模型? [英] Workarounds for gaps in Word for Mac 2011 VBA object model?

查看:369
本文介绍了解决方法在Word差距为Mac 2011 VBA对象模型?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有似乎是在Word中VBA 2007/2010对象模型的东西一大堆这只是在Word 2011 VBA缺少

There seem to be a bunch of things in the Word 2007/2010 VBA object model which are simply missing in Word 2011 VBA.

具体来说,Word 2007中(Windows版)包括与对象和方法:

Specifically, Word 2007 (for Windows) includes objects and methods related to:


  • ContentControls

  • CustomXMLParts

  • 的OpenXML

例如:

**Word.Document**

Property ContentControls As ContentControls
contentcontrol events eg Event ContentControlAfterAdd(NewContentControl As ContentControl, InUndoRedo As Boolean)

Property CustomXMLParts As CustomXMLParts

Property WordOpenXML As String

**Word.ContentControl**

Property XMLMapping As XMLMapping

**Word.ContentControls**

Function Add([Type As WdContentControlType = wdContentControlRichText], [Range]) As ContentControl

**Word.Selection/Word.Range**

Sub InsertXML(XML As String, [Transform])

在Word中2011 VBA编辑器,我无法找到任何这些。

In the VBA editor in Word 2011, I can't find any of these.

是字2011之间的区别VBA和Word 2010中VBA对象模型记录任何地方?

Are the differences between Word 2011 VBA and Word 2010 VBA object models documented anywhere?

我也浏览/搜索的脚本编辑器的字典,看看是否有这些对象都暴露在那里。他们不是。

I've also browsed/searched the Script Editor's dictionary, to see whether any of these objects are exposed there. They aren't.

在我的实验,到目前为止,2011字确实preserve现有的内容控制在一个的docx(即它保存它们),但你不能看到他们的文件表面上的用户界面,并有似乎并不以任何方式增加新的(无论是通过开发选项卡,或通过VBA或AppleScript的)。

In my experiments so far, Word 2011 does preserve existing content controls in a docx (ie it saves them), but you can't see them on the document surface in the UI, and there doesn't seem to be any way to add new ones (either via the Developer tab, or via VBA or AppleScript).

所以,任何建议,如何与一般围绕在Word中的差距为Mac 2011 VBA对象模型的工作,特别是如何与内容控制和自定义XML Word中的Mac上工作?

So, any suggestions as to how to work with around gaps in the Word for Mac 2011 VBA object model generally, and in particular how to work with content controls and custom xml in Word on the Mac?

推荐答案

不幸的是它出现在VBA的CC工作已经从Mac的Word 2011 VBA中删除。看到这个页面:

Unfortunately it appears that CC work in VBA has been removed from Mac Word 2011 VBA. See this page:

从Microsoft Word对象模型变动2010

适用于Mac的Word 2011 VBA完整的联机帮助是: HTTP: //mac2.microsoft.com/vb/1033/default.aspx?src=wd

The full online help for Mac Word 2011 VBA is at: http://mac2.microsoft.com/vb/1033/default.aspx?src=wd

这篇关于解决方法在Word差距为Mac 2011 VBA对象模型?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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