Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / August 2006

Tip: Looking for answers? Try searching our database.

Find Blank lines between paragraph

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
siddhi4126@gmail.com - 07 Aug 2006 21:22 GMT
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

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.