Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/vba/14.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Vba 关闭Word 2007中的段落标记_Vba_Word 2007 - Fatal编程技术网

Vba 关闭Word 2007中的段落标记

Vba 关闭Word 2007中的段落标记,vba,word-2007,Vba,Word 2007,如果段落标记已打开,是否有方法关闭它们 我在网上搜索了一下,没有找到任何东西,除了检查它们是开还是关。你要找的是ShowAll属性 要打开: ActiveWindow.ActivePane.View.ShowAll = True 要关闭: ActiveWindow.ActivePane.View.ShowAll = False 要检查段落标记是否已打开,然后将其关闭,请执行以下操作: If ActiveWindow.ActivePane.View.ShowAll = True Then

如果段落标记已打开,是否有方法关闭它们


我在网上搜索了一下,没有找到任何东西,除了检查它们是开还是关。

你要找的是
ShowAll
属性

要打开:

ActiveWindow.ActivePane.View.ShowAll = True
要关闭:

ActiveWindow.ActivePane.View.ShowAll = False
要检查段落标记是否已打开,然后将其关闭,请执行以下操作:

If ActiveWindow.ActivePane.View.ShowAll = True Then
    ActiveWindow.ActivePane.View.ShowAll = False
End If