|
Sub Macro2()
Selection.EndKey Unit:=wdStory
Selection.InsertFile FileName:="零部件工艺过程卡.dot", Range:="", _
ConfirmConversions:=False, Link:=False, Attachment:=False
Selection.InsertBreak Type:=wdSectionBreakNextPage
Debug.Print ThisDocument.Sections.Count
Debug.Print ActiveDocument.Sections.Count
End Sub
在测试一篇文章发现
ThisDocument和ActiveDocument有区别
Debug.Print ThisDocument.Sections.Count ---结果永远是1
Debug.Print ActiveDocument.Sections.Count-----与插入的分节数是相同的.
通过测试Sections的数量,请问各位大侠.
ThisDocument与ActiveDocument有区别吗> |
|