However for the other types of breaks the range or selection is actually replaced When you insert a section break it is inserted immediately before the specified range or selection The Start is the type of section break to insert objSection.Add Range:=Start:= wdSectionStart.wdSectionContinuousĪn alternative way to insert a new section is using the InsertBreak method which applies to a Range or Selection objectĮxpression.InsertBreak( wdBreakType.wdSectionBreakNextPage) ![]() The Range parameter refers to the range before which the section break will be inserted The section object represents a section in a document, range or selectionĮach of the Document, Range and Selection objects has a Sections property that returns a sections collection. Execute Replace:= wdReplace.wdReplaceAll ![]() After running these lines of code the whole document will be selected.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |