ActiveDocument.SectionExists Function
Determines whether a given section exists in the ActiveDocument.
[ActiveDocument.]SectionExists (Section)
Arguments
- Section
- Required. A string value containing the name of the Section for which to search.
Return Value
The SectionExists function returns the following values:
If |
SectionExists returns |
Section is not the name of a Section object in the ActiveDocument. |
false ...and "Section is not the name of
a Section object." is written to the console. |
Section is the name of a Section object in the ActiveDocument. |
true |
Remarks
The following examples use ActiveDocument.SectionExists to determine whether a section exists:
// output whether a section named "Dashboard" exists in the ActiveDocument
Alert(ActiveDocument.SectionExists("Dashboard"));
Requirements
|