A paragraph mark that refuses be found as part of a group

L

Larry

Here's a bizarre thing. In Word 97, the paragraph mark at the end of
paragraph 2 of a document will not be found with other paragraph marks.
When I search for ^13{1,} with Wildcards checked, that paragraph only
gets selected by itself, not as part of a group with the paragraph marks
that follow it. The text was originally copied from a web page, which
I've since modified, but the paragraph mark is the same. I can fix it
by just erasing and re-typing the paragraph marks, but I'd like to know
why this is happening.

If it's ok, I'll send the document as an attachment and you can see what
I'm talking about.

Larry
 
B

Beth Melton

Hi Larry,

If it is text you copied was from a web page then it could be a
different ASCII character. IIRC I've encountered some paragraph marks
that were actually ASCII character 10.

Here is a macro that may help you determine more information:

Sub Whatsit()
Dim ansinum As Long, unicodenum As Long
ansinum = Asc(Selection.Text)
unicodenum = AscW(Selection.Text)
If unicodenum < 0 Then
unicodenum = unicodenum + 65536
End If
MsgBox "Ansi: " & ansinum & _
", Unicode: " & unicodenum
End Sub

--
Please post all follow-up questions to the newsgroup. Requests for
assistance by email can not be acknowledged.

~~~~~~~~~~~~~~~
Beth Melton
Microsoft Office MVP

Word FAQ: http://mvps.org/word
TechTrax eZine: http://mousetrax.com/techtrax/
MVP FAQ site: http://mvps.org/
 
K

Klaus Linke

Hi Larry,

You might also want to make sure there's no invisible formatting mark (such
as an optional hyphen) or hidden text or a field close to the strangely
solitary ¶ mark.

Regular searches mostly ignore such invisible stuff, but wildcard searches
don't.

If you want to, you can mail me the doc to look at.

Greetings,
Klaus
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top