【发布时间】:2012-02-15 01:59:05
【问题描述】:
我试图在我的文档中找到一些仅以“标题 1”样式出现的文本。到目前为止,没有任何用处。
示例代码:
With ThisDocument.Range.Find
.Text = "The Heading"
.Style = "Heading 1" 'Does not work
.Execute
If .Found Then Debug.Print "Found"
End With
只是一个注释,它一直停在目录中。
编辑:修复了拼写错误的“if”语句
【问题讨论】: