Table of Contents 'update‘命令是否也包含了'updatepagenumbers’命令,或者我的代码中是否同时需要这两个命令?
For Each oTOC In ActiveDocument.TablesOfContents
oTOC.Update
oTOC.UpdatePageNumbers 'update TOC's
Next oTOC发布于 2020-04-30 14:00:49
Update()会同时更新目录中的条目及其页码,因此不需要在之后调用UpdatePageNumbers()。
https://stackoverflow.com/questions/57145385
复制相似问题