VBA Code for Word Navigation Pane 【failed】 view-showheading-method-word
2024-08-31 18:36:19
https://msdn.microsoft.com/VBA/Word-VBA/articles/view-showheading-method-word
View.ShowHeading Method (Word)
office 365 dev account|Last Updated: 6/12/2017
|
1 Contributor
Shows all headings up to the specified heading level and hides subordinate headings and body text.
Syntax
expression . ShowHeading( Level )
expression Required. A variable that represents a View object.
Parameters
Name | Required/Optional | Data Type | Description |
---|---|---|---|
Level | Required | Long | The outline heading level (a number from 1 to 9). |
Remarks
This method generates an error if the view isn't outline view or master document view.
Example
This example switches the active window to outline view and displays all text that's formatted with the Heading 1 style. Body text and all other types of headings are hidden.
With ActiveDocument.ActiveWindow.View
.Type = wdOutlineView
.ShowHeading 1
End With
This example switches the window for Document1 to outline view and displays all text that's formatted with the Heading 1, Heading 2, or Heading 3 style.
With Windows("Document1").View
.Type = wdOutlineView
.ShowHeading 3
End With
See also
Concepts
最新文章
- java 引入自定义字体font后出现的硬盘吃光的问题
- SoapUI 设置 request data with json body
- 无法更新 EntitySet“SoreInfo_Table”,因为它有一个 DefiningQuery,而 <;ModificationFunctionMapping>; 元素中没有支持当前操作的 <;InsertFunction>; 元素。
- 【bzoj2333】 [SCOI2011]棘手的操作 可并堆+lazy标记
- [51NOD1065] 最小正子段和(STL,前缀和)
- arm tiny6410双网卡桥接问题
- *像word一样编辑复杂的文本:SpannableString 样式详介
- Hadoop的安装与配置说明
- Java[1] Java学习书籍汇总(转)
- 尝试解决IIS问题一些方法
- 【CNMP系列】CentOS7.0下安装FTP服务
- Redis【第二篇】集群搭建
- 基于angular2x+ng-bootstrap构建后台管理系统界面(干货)
- 嵌入式linux------SDL移植(am335x下显示yuv420)
- 浅入深出Vue:环境搭建
- Java学习笔记之——集合
- Building Forms with PowerShell – Part 1 (The Form)
- 对Spring Ioc的理解
- centos7 彻底卸载PHP7
- Selenium实战总结(webwiew下拉框定位)
热门文章
- Fedora 13 Alpha测试手记横空出世
- Vue的学习--环境配置
- 请求不携带cookie问题
- redirect_uri 参数错误
- java 之 wait, notify, park, unpark , synchronized, Condition
- 学习活动管理系统:LAMS
- 数值溢出(arithmetic overflow)问题与解决方案
- [selenium]选取下拉框内容的方法
- AlertDialog的onCreateDialog与onPrepareDialog用法
- C语言深度解剖读书笔记