The following content is related to the sections or Section object of VBA programming in Word documents, and you want to help.
ActiveDocument.Sections.First ' The first section of the current document
ActiveDocument.Sections.First.PageSetup.BottomMargin ' The bottom margin of the page where the first section of the current document is located
ActiveDocument.Sections.First.PageSetup.LeftMargin ' The left margin of the page in the first section of the current document
ActiveDocument.Sections.First.PageSetup.RightMargin ' right margin of the page where the first section of the current document is located
ActiveDocument.Sections.First.PageSetup.TopMargin ' top margin of the page in the first section of the current document
ActiveDocument.Sections.First.PageSetup.PaperSize ' Returns or sets the size of the page in the first section of the current document
ActiveDocument.Sections.First.PageSetup.PageHeight ' Returns or sets the height of the page in the first section of the current document
ActiveDocument.Sections.First.PageSetup.PageWidth ' Returns or sets the width of the page in the first section of the current document
ActiveDocument.Sections.Add Range:=myrange ' Add a new section to the current document
ActiveDocument.Sections.Item (2) ' The second section of the current document
ActiveDocument.Sections.Last.Range.InsertAfter "End of document!" ' Add text to the end of the last section in the current document ' End of document!
The above content and have a certain VBA knowledge of netizens use.