答案 0 :(得分:1)
无需激活或选择任何内容。试试:
Sub CopyContent()
Dim Rng As Range, RngTmp As Range, wdDoc As Document
With ThisDocument
Set Rng = .Range.GoTo(What:=wdGoToPage, Which:=wdGoToAbsolute, Count:=196)
Set RngTmp = .Range.GoTo(What:=wdGoToPage, Which:=wdGoToAbsolute, Count:=207)
Set RngTmp = RngTmp.GoTo(What:=wdGoToBookmark, Name:="\Page")
Rng.End = RngTmp.End: Set RngTmp = Nothing
End With
Set wdDoc = Documents.Add
With wdDoc
Rng.Copy
.Range.Characters.Last.PasteAndFormat Type:=wdFormatOriginalFormatting
.SaveAs FileName:="C:\Users\GP8535\Desktop\Word Doc\SB 59_test.docx"
.Close
End With
Set Rng = Nothing
End Sub