I am very new in vb. I need to find blank lines between paragraphs and
get the particular paragraph.
For example:
alksdjf alkdjf alkdjf alskdjf aldfj a;dfljkaldfj.da flkd;sa
jflkdsa jf;ldkj f;lakjd fkasdj f;ajd fadsf
df aldfjakldf.
sdlfkj aslkdf jalksd fjlakdj faldsk fald [SDF SDFK SDF]. adklf
ajdkl;fj alksdjf alskdjf .adj.fka jdfk.adf.adfa.
So, basically i want to get second paragraph since the tag([SDF SDFK
SDF]) is in second one so with the index of "[", I am trying to get
text after the blank line and before the blank line at the end of the
paragraph..
Any idea
if somebody can help that would be great. thanks
Helmut Weber - 08 Aug 2006 01:01 GMT
hmm...
>I am very new in vb. I need to find blank lines between paragraphs and
>get the particular paragraph.
Leaving anything else aside, there are no lines between paragraphs.
In fact, there can be nothing _between_ paragraphs at all.
Lines are always parts of paragraphs.
This is how a sequence of three paragraphs will probably look,
whereby the second paragraph contains no text.
sdkfjlskdfl
lkslkdfjslkdfjsl¶
¶
aalksdldlad
aösldkaölksdka¶
Make sure that
Tools, Options, View
Formatting marks, Paragraph marks is checked.

Signature
Greetings from Bavaria, Germany
Helmut Weber, MVP WordVBA
Win XP, Office 2003
"red.sys" & Chr$(64) & "t-online.de"
Russ - 14 Aug 2006 17:56 GMT
siddhi4126,
Click on link below to learn how find, replace, and expand is used in VBA by
others:
http://tinyurl.com/zh2dh
Also while in the VBA editor, use the VBA help menu item and search for help
about the "paragraphs" collection, the "expand" method, and "find"; since
you said you wanted to expand your found text to include the whole paragraph
that it was found in.
> I am very new in vb. I need to find blank lines between paragraphs and
> get the particular paragraph.
[quoted text clipped - 15 lines]
> Any idea
> if somebody can help that would be great. thanks

Signature
Russ
drsmN0SPAMikleAThotmailD0Tcom.INVALID