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