以下內容與Word文檔VBA編程的Sections或Section對象有關,希望對您有所幫助。
ActiveDocument.Sections.First 當前文檔的第一節
ActiveDocument.Sections.First.PageSetup.BottomMargin 當前文檔第一節所在頁的底邊距
ActiveDocument.Sections.First.PageSetup.LeftMargin 當前文檔第一節所在頁的左邊距
ActiveDocument.Sections.First.PageSetup.RightMargin 當前文檔第一節所在頁的右邊距
ActiveDocument.Sections.First.PageSetup.TopMargin 當前文檔第一節所在頁的頂邊距
ActiveDocument.Sections.First.PageSetup.PaperSize 返回或設置當前文檔第一節所在頁的大小
ActiveDocument.Sections.First.PageSetup.PageHeight 返回或設置當前文檔第一節所在頁的高度
ActiveDocument.Sections.First.PageSetup.PageWidth 返回或設置當前文檔第一節所在頁的寬度
ActiveDocument.Sections.Add Range:=myRange 在當前文檔中添加新節
ActiveDocument.Sections.Item(2) 當前文檔中的第二節
ActiveDocument.Sections.Last.Range.InsertAfter "文檔結束!" 在當前文檔中最后一節的結尾添加文字“文檔結束!”
以上內容與具備一定VBA知識的網友使用。
新聞熱點
疑難解答