1
の2ページ間の文書を挿入します。は、私は次の操作を行うことができれば、私は思ったんだけど、他の
- 文書
- 内でブックマークこのブックマークを
- 上にあるページ番号が別のものを挿入して確認して下さい
:識別されたページSub InsertDoc Dim MasterDoc As Document Dim bookmarkRng As Range Dim pageNo As Long Set MasterDoc = Documents.Open("Master.docx") Set bookmarkRng = MasterDoc.Bookmarks("TheBookmark").Range pageNo = bookmarkRng.Information(wdActiveEndPageNumber) '1.This is where I need to specify to insert before/after the found page, not sure how MasterDoc.InsertFile FileName:="AnotherDoc.docx" '2.Is it possible to use this syntax instead and specify before/after insertion of a whole file? MasterDoc.Bookmarks("TheBookmark").Range.InsertFile FileName:="AnotherDoc.docx" MasterDoc.Save MasterDoc.Close Set MasterDoc = Nothing End Sub
これまでの私のコードの前に文書0
ご協力いただきありがとうございます。