B
Bob
Is there any way to indicate the presence of a paragraph
mark in a string, or precedes a string?
For instance, I want to say something like
If Selection.Text = "Text" Then
' do something
I would like to test wether or not there is a paragraph
before the "text", as in here
If Selection.Text = ParagraphMark, "Text" Then
' do something
Is there any way to do something like this? The problem
is that I am dealing with tables of contents, and when I
..TablesOfContents(1).Range.Select
the paragraph mark above the table of contents (which was
just updated) is "included" in the table of contents
field, so that the table of contents cannot be selected
without also selecting the paragraph mark, and so .Text
will never = "Text" because there is a paragraph mark
included in the selection.
Thaks for any help
mark in a string, or precedes a string?
For instance, I want to say something like
If Selection.Text = "Text" Then
' do something
I would like to test wether or not there is a paragraph
before the "text", as in here
If Selection.Text = ParagraphMark, "Text" Then
' do something
Is there any way to do something like this? The problem
is that I am dealing with tables of contents, and when I
..TablesOfContents(1).Range.Select
the paragraph mark above the table of contents (which was
just updated) is "included" in the table of contents
field, so that the table of contents cannot be selected
without also selecting the paragraph mark, and so .Text
will never = "Text" because there is a paragraph mark
included in the selection.
Thaks for any help