首页 > 范文大全 > 写作模板 > [vba操作word中的表格]VBA操作Word中Documents/Document对象属性介绍

[vba操作word中的表格]VBA操作Word中Documents/Document对象属性介绍

时间:2019-01-06   来源:写作模板   点击:

【www.gbppp.com--写作模板】

   如果您想通过VBA操作word,如下Documents/Document对象的属性,应该对您有所帮助。

  ActiveDocument.AttachedTemplate.FullName "返回当前文档采用的模板名及模板所在位置

  ActiveDocument.Bookmarks.Count "返回当前文档中的书签数

  ActiveDocument.Characters.Count "返回当前文档的字符数

  ActiveDocument.CodeName ‘返回当前文档的代码名称

  ActiveDocument.Comments.Count ‘返回当前文档中的评论数

  ActiveDocument.Endnotes.Count "返回当前文档中的尾注数

  ActiveDocument.Fields.Count "返回当前文档中的域数目

  ActiveDocument.Footnotes.Count ‘返回当前文档中的脚注数

  ActiveDocument.FullName "返回当前文档的全名及所在位置

  ActiveDocument.HasPassword "当前文档是否有密码保护

  ActiveDocument.Hyperlinks.Count "返回当前文档中的链接数

  ActiveDocument.Indexes.Count "返回当前文档中的索引数

  ActiveDocument.ListParagraphs.Count "返回当前文档中项目编号或项目符号数

  ActiveDocument.ListTemplates.Count "返回当前文档中使用的列表模板数

  ActiveDocument.Paragraphs.Count "返回当前文档中的段落数

  ActiveDocument.Password=XXX "设置打开文件使用的密码

  ActiveDocument.ReadOnly "获取当前文档是否为只读属性

  ActiveDocument.Saved "当前文档是否被保存

  ActiveDocument.Sections.Count "当前文档中的节数

  ActiveDocument.Sentences.Count ‘当前文档中的语句数

  ActiveDocument.Shapes.Count "当前文档中的形状数

  ActiveDocument.Styles.Count "当前文档中的样式数

  ActiveDocument.Tables.Count ‘当前文档中的表格数

  ActiveDocument.TablesOfAuthorities.Count ‘返回当前文档中的引文目录数

  ActiveDocument.TablesOfAuthoritiesCategories.Count ‘返回当前文档中引文目录类别数

  ActiveDocument.TablesOfContents.Count ‘返回当前文档中的目录数

  ActiveDocument.TablesOfFigures.Count "返回当前文档中的图表目录数

本文来源:http://www.gbppp.com/fw/562491/

推荐访问:vba操作word中的表格

热门文章