下面的代码可以获得文档的页数:<br>Dim varNumberPages As Variant<br>varNumberPages = _<br>ActiveDocument.Content.Information(wdActiveEndAdjustedPageNumber)<br>