ExcelHome技术论坛

 找回密码
 免费注册

QQ登录

只需一步,快速开始

快捷登录

搜索
EH技术汇-专业的职场技能充电站 妙哉!函数段子手趣味讲函数 Excel服务器-会Excel,做管理系统 Excel Home精品图文教程库
HR薪酬管理数字化实战 Excel 2021函数公式学习大典 Excel数据透视表实战秘技 打造核心竞争力的职场宝典
300集Office 2010微视频教程 数据工作者的案头书 免费直播课集锦 ExcelHome出品 - VBA代码宝免费下载
用ChatGPT与VBA一键搞定Excel WPS表格从入门到精通 Excel VBA经典代码实践指南
查看: 4658|回复: 4

[讨论] 理解word的应用级对象

[复制链接]

TA的精华主题

TA的得分主题

发表于 2010-1-23 07:36 | 显示全部楼层 |阅读模式
http://msdn.microsoft.com/en-us/library/bb225019.aspx
This section of the Microsoft® Office Word 2007 Developer Reference contains documentation for all of the objects, properties, methods, and events contained in the Word object model. You can use the table of contents to navigate through the documentation.
Word对象部分包含文件的所有对象的特性、方法和事件。可以使用文件的导航表目录。

请有兴趣的大侠关注下面的语句在Word-VBA中的正确翻译。
Word Application-------Word的应用
原文摘要:The Application object includes properties and methods that return top-level objects. For example, the ActiveDocument property returns a Document object.
Application对象包含对象的最上面一层的特性和方法。

Document Object-------文件对象
原文摘要:The Document object is a member of the Documents collection. The Documents collection contains all the Document objects that are currently open in Word.
文档集合成员,包含当前所有打开的word文件。
Range Object------------范围(还是区域??)对象
原文摘要:Represents a contiguous area in a document. Each Range object is defined by a starting and ending character position.
表示在文档相邻区域,每个Range定义了起点和终点的字符位置。

Selection Object---------选择区对象
原文摘要: A selection represents either a selected (or highlighted) area in the document, or it represents the insertion point if nothing in the document is selected.
让文档中的被选择区域突出,在文档中没有选择,表现为插入点。
Tables Collection--------表的集合
The Table object is a member of the Tables collection. The Tables collection includes all the tables in the specified selection, range, or document.
表是表集合的成员,表集合包含中所有规定的选择、区域和文档中。

Paragraph Object---段落对象
The Paragraph object is a member of the Paragraphs collection. The Paragraphs collection includes all the paragraphs in a selection, range, or document.
段落对象是段落集合成员,段落集合包含选择、区域和文档。

[ 本帖最后由 ningyong58 于 2010-1-24 08:06 编辑 ]

TA的精华主题

TA的得分主题

 楼主| 发表于 2010-1-23 09:02 | 显示全部楼层
个人对Word--VBA理解翻译,表述不是很到位,仅供参考。

Word Object Model Reference-Word才对象模型参考
http://msdn.microsoft.com/en-us/library/bb244515.aspx
Word Object Model Reference
AddIn Object-----------添加对象(http://msdn.microsoft.com/en-us/library/bb148365.aspx
Word Object Model Maps-------对象模型地图(http://msdn.microsoft.com/en-us/library/bb288731.aspx)
AddIns Object
Adjustments Object------ 形状和艺术字形的集合数据(http://msdn.microsoft.com/en-us/library/bb148367.aspx)
Application Object
AutoCaption Object------表、图片和OLE对象插入到文档的标题。 
AutoCaptions Object
AutoCorrect Object
AutoCorrectEntries Object---- 自动更正输入数据(内置菜单) 
AutoCorrectEntry Object
AutoTextEntries Object -- AutoCorrectEntries成员,文本输入。
AutoTextEntry Object
Axes Object   --- 图表中的Axes轴
Axis Object
AxisTitle Object
Bibliography Object----目录(附加到文档中可用的列表)
Bookmark Object
Bookmarks Object----在文档、节和段中的书签。
Border Object
Borders Object----边界集合
Break Object
Breaks Object
Browser Object  
BuildingBlock Object ---在缓冲区,预建立目录、图片和格式。
BuildingBlockEntries Object
BuildingBlocks Object
BuildingBlockType Object
BuildingBlockTypes Object
CalloutFormat Object----插图编号
CanvasShapes Object---Shape和ShapeRange的画布对象
CaptionLabel Object ---标题的标志   
CaptionLabels Object
Categories Object ------- 目录分类对象
Category Object
Cell Object --表的单元格对象
Cells Object
Characters Object---节、范围和文档的字符对象
Chart Object
ChartArea Object -- 每个事件和画图区域的字符集
ChartBorder Object --图表边界对象
ChartCharacters Object --图表字符对象
ChartColorFormat Object  --图表格式对象
ChartData Object      --- 图表数据数据对象 
ChartFillFormat Object  
ChartFormat Object
ChartGroup Object
ChartGroups Object
ChartTitle Object
CheckBox Object
ColorFormat Object
Column Object
Columns Object
Comment Object
Comments Object
ConditionalStyle Object
ContentControl Object
ContentControlListEntries Object
ContentControlListEntry Object
ContentControls Object
CustomLabel Object
CustomLabels Object
CustomProperties Object
CustomProperty Object
DataLabel Object
DataLabels Object
DataTable Object
DefaultWebOptions Object
Dialog Object ----内置对话框对象
Dialogs Object
Dictionaries Object---包含习惯用法字典的字典对象
Dictionary Object
DisplayUnitLabel Object
Document Object-------文档集的文档成员对象
Documents Object
DownBars Object----连接图表的Seires的下拉条(详见原文)
DropCap Object
DropDown Object
DropLines Object
Editor Object
Editors Object
Email Object
EmailAuthor Object
EmailOptions Object
EmailSignature Object
EmailSignatureEntries Object
EmailSignatureEntry Object
Endnote Object
EndnoteOptions Object
Endnotes Object
Envelope Object
ErrorBars Object
Field Object    ---- 域集合对象
Fields Object
FileConverter Object ---  文件转换对象
FileConverters Object 
FillFormat Object   ---- shape的渐变、质感、图案、图片或半透明的填充l.
Find Object
FirstLetterException Object
FirstLetterExceptions Object
Floor Object-----Floor 如何翻译??,原文翻译:嵌入式颜色????
Font Object  ----包含字体属性(字体名、尺寸和颜色)
FontNames Object
Footnote Object---脚注对象(文本的底部)
FootnoteOptions Object
Footnotes Object
FormField Object----格式域对象??(对否),原文理解,书签名或索引成员>?
FormFields Object
Frame Object----框架对象集合,包含所有节、范围和文档Frames Object
Frameset Object
FreeformBuilder Object
Global Object
GlowFormat Object
GridLines Object
GroupShapes Object
HangulAndAlphabetException Object
HangulAndAlphabetExceptions Object
HangulHanjaConversionDictionaries Object
HeaderFooter Object
HeadersFooters Object
HeadingStyle Object
HeadingStyles Object
HiLoLines Object
HorizontalLineFormat Object
HTMLDivision Object
HTMLDivisions Object
Hyperlink Object
Hyperlinks Object
Index Object----包含文档规定的索引集合
Indexes Object
InlineShape Object
InlineShapes Object
KeyBinding Object
KeyBindings Object
KeysBoundTo Object
Language Object
Languages Object
LeaderLines Object
Legend Object
LegendEntries Object
LegendEntry Object
LegendKey Object
LetterContent Object
Line Object
LineFormat Object
LineNumbering Object
Lines Object
LinkFormat Object
List Object
ListEntries Object
ListEntry Object
ListFormat Object
ListGalleries Object---项目符号和编号列表的集合
ListGallery Object
ListLevel Object
ListLevels Object
ListParagraphs Object--- 规定档案、列表或范围(Range)中应用了格式的段落集合对象.
Lists Object
ListTemplate Object----包含格式定义列表的模版集合成员.
ListTemplates Object
MailingLabel Object
MailMerge Object
MailMergeDataField Object
MailMergeDataFields Object
MailMergeDataSource Object
MailMergeField Object
MailMergeFieldName Object
MailMergeFieldNames Object
MailMergeFields Object
MailMessage Object
MappedDataField Object
MappedDataFields Object
OLEFormat Object--OLE规格参数(除了链接)对象,Active控制或域
OMath Object
OMathAcc Object
OMathArgs Object
OMathAutoCorrect Object
OMathAutoCorrectEntries Object
OMathAutoCorrectEntry Object
OMathBar Object----生成公式添加到文档、范围(Range)
OMathBorderBox Object
OMathBox Object
OMathBreak Object
OMathBreaks Object
OMathDelim Object
OMathEqArray Object
OMathFrac Object
OMathFunc Object
OMathFunction Object
OMathFunctions Object
OMathGroupChar Object
OMathLimLow Object
OMathLimUpp Object
OMathMat Object
OMathMatCol Object
OMathMatCols Object
OMathMatRow Object
OMathMatRows Object
OMathNary Object
OMathPhantom Object
OMathRad Object
OMathRecognizedFunction Object
OMathRecognizedFunctions Object
OMaths Object
OMathScrPre Object
OMathScrSub Object
OMathScrSubSup Object
OMathScrSup Object
Options Object
OtherCorrectionsException Object
OtherCorrectionsExceptions Object
Page Object
PageNumber Object
PageNumbers Object
Pages Object
PageSetup Object
Pane Object
Panes Object
Paragraph Object
ParagraphFormat Object
Paragraphs Object
PictureFormat Object
PlotArea Object
Point Object
Points Object
ProofreadingErrors Object
Range Object
ReadabilityStatistic Object
ReadabilityStatistics Object
RecentFile Object
RecentFiles Object
Rectangle Object
Rectangles Object
ReflectionFormat Object
Replacement Object
Research Object
Reviewer Object
Reviewers Object
Revision Object
Revisions Object
RoutingSlip Object
Row Object
Rows Object
Section Object
Sections Object
Selection Object
Sentences Object
Series Object
SeriesCollection Object
SeriesLines Object
Shading Object
ShadowFormat Object
Shape Object
ShapeNode Object
ShapeNodes Object
ShapeRange Object
Shapes Object
SmartTag Object
SmartTagAction Object
SmartTagActions Object
SmartTagRecognizer Object
SmartTagRecognizers Object
SmartTags Object
SmartTagType Object
SmartTagTypes Object
SoftEdgeFormat Object
Source Object
Sources Object
SpellingSuggestion Object
SpellingSuggestions Object
StoryRanges Object
Style Object
Styles Object
StyleSheet Object
StyleSheets Object
Subdocument Object
Subdocuments Object
SynonymInfo Object
System Object
Table Object
TableOfAuthorities Object
TableOfAuthoritiesCategory Object
TableOfContents Object
TableOfFigures Object
Tables Object
TablesOfAuthorities Object
TablesOfAuthoritiesCategories Object
TablesOfContents Object
TablesOfFigures Object
TableStyle Object
TabStop Object
TabStops Object
Task Object
TaskPane Object
TaskPanes Object
Tasks Object
Template Object
Templates Object
TextColumn Object
TextColumns Object
TextEffectFormat Object
TextFrame Object
TextInput Object
TextRetrievalMode Object
ThreeDFormat Object
TickLabels Object
Trendline Object
Trendlines Object
TwoInitialCapsException Object
TwoInitialCapsExceptions Object
UpBars Object
Variable Object
Variables Object
Version Object
View Object
Walls Object
WebOptions Object
Window Object
Windows Object
Words Object
WrapFormat Object
XMLChildNodeSuggestion Object
XMLChildNodeSuggestions Object
XMLMapping Object
XMLNamespace Object
XMLNamespaces Object
XMLNode Object
XMLNodes Object
XMLSchemaReference Object
XMLSchemaReferences Object
XSLTransform Object
XSLTransforms Object
Zoom Object
Zooms Object
Enumerations

[ 本帖最后由 ningyong58 于 2010-1-24 07:50 编辑 ]

TA的精华主题

TA的得分主题

 楼主| 发表于 2010-1-24 14:34 | 显示全部楼层
[广告] Excel易用宝 - 提升Excel的操作效率 · Excel / WPS表格插件       ★免费下载 ★       ★ 使用帮助
现在搞清楚了Word的Range与Excel的Range理解是有区别的.
下面是Word的range解释.

Range 对象         
使用 Visual Basic 通常需要完成的任务是在文档中指定一个区         
域然后对该区域进行一些操作例如插入文字或应用格式例如         
可能需要编写一个宏用来在文档的某一部分查找一个单词或词组         
文档的这一部分就可以用 Range 对象来代表定义 Range 对象后就可以应用 Range 对象的方法和属性来修改这个区域的内容Range 对象代表文档中的一个范围与在文档中使用的书签类似在 Visual Basic 过程中使用 Range 对象可以定义文档的某一部分每一个 Range 对象由一起始和一终止字符位置定义一个 Range 对象小至只是一个插入点大至包括整篇文档但是与书签不同Range 对象只在定义该对象的过程运行时才存在

TA的精华主题

TA的得分主题

 楼主| 发表于 2010-1-24 14:40 | 显示全部楼层
[广告] VBA代码宝 - VBA编程加强工具 · VBA代码随查随用  · 内置多项VBA编程加强工具       ★ 免费下载 ★      ★使用手册
文档元素与相应的对象

Words(index) Range
字符集合 Characters(index) Range
句子集合 Sentences(index) Range
段落集合 Paragraphs(index) Paragraph
节集合 Sections(index) Section
从上面的表格中我们知道Words(index) Characters(index)
Sentences(index)都将返回一个Range 对象Paragraphs 和 Sections 集
合中的成员分别是Paragraph 和Section 对象但 Range 属性返回
Range 对象对 Paragraph 和 Section 对象都是有效的也可以使用
Range 对象的属性和方法

[ 本帖最后由 ningyong58 于 2010-1-24 14:41 编辑 ]

TA的精华主题

TA的得分主题

发表于 2010-1-24 23:45 | 显示全部楼层
[广告] Excel易用宝 - 提升Excel的操作效率 · Excel / WPS表格插件       ★免费下载 ★       ★ 使用帮助
谢谢LZ分享
您需要登录后才可以回帖 登录 | 免费注册

本版积分规则

手机版|关于我们|联系我们|ExcelHome

GMT+8, 2024-5-19 13:59 , Processed in 0.038441 second(s), 10 queries , Gzip On, MemCache On.

Powered by Discuz! X3.4

© 1999-2023 Wooffice Inc.

沪公网安备 31011702000001号 沪ICP备11019229号-2

本论坛言论纯属发表者个人意见,任何违反国家相关法律的言论,本站将协助国家相关部门追究发言者责任!     本站特聘法律顾问:李志群律师

快速回复 返回顶部 返回列表