Description
Returns True if the style name of the current paragraph style matches the specified one.
Syntax
dim bValue as Boolean = Text.TestTextParaStyle (str1) |
str1
paragraph style to match. It is case sensitive, but it can contain * as a wildcard
Examples
Returns True if the paragraph style name is 'head', but False, if it is 'Head', or 'head20' or 'subhead'.
MsgBox(Text.TestTextParaStyle ("head"))
Returns True if the paragraph style name is 'head' or 'head20' or 'heading', but False, if it is 'Head', or 'subhead'.
MsgBox(Text.TestTextParaStyle ("head*"))
Returns True if the paragraph style name is 'brief head' or 'Brief head' or 'Arief head', and False otherwise.
MsgBox(Text.TestTextParaStyle ("?rief head"))
Context
Text designer commands
See also