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 / May 2006

Tip: Looking for answers? Try searching our database.

Find all paragraphs with listtype bullet and underbullet level 2

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Mats Nilsson - 27 May 2006 12:09 GMT
Hi everybody,
I´m trying to find a code that in a quick way can find, and locate, all
paragraphs with listtype bullet and specially underbullets, intended bullets.
A can get a code with loop through all paragraphs to work but in a big
document it will take quite a long time to run. So I´m trying to find out
another way to solve this.
I´ve tried to use the Find method but I did not succeed

Thanks in advance for any suggestion.
Mats

ESI Update
Helmut Weber - 27 May 2006 13:23 GMT
Hi Mats,

there is no fastest method of searching,
as well as there is not fastest method of sorting.
The speed depends on the data and the means that are available,
like amount of data, size of data items, available memory.

One way, without knowing Word's internal way of handling this,
would be, to recursively cut down a document into parts,
and look for the number of listparagaphs in the successive parts.

In theory:
Whole doc listparagraphs.count
if > 1 then
  first half of doc listparagrahs.count
  if > 1 then first quarter of doc listparagrahs.count
...
at nauseam

Whether this results in shorter processing time,
depends on the document's structure.
Might be lightening fast,
if there is only 1 listparagraph to be found,
might be a complete waste of time, if all
paragraphs are listparagraphs,
at the other end of the spectrum of possibilities.

To the best of my knowledge.

Signature

Greetings from Bavaria, Germany

Helmut Weber, MVP WordVBA

Win XP, Office 2003
"red.sys" & Chr$(64) & "t-online.de"

Mats Nilsson - 29 May 2006 08:09 GMT
Hi Helmut,
Thanks for your answer.
Maybe I should have made my question about the Find Method more clear. I´ve
tried to use the Find method to locate lists with bullets but I can´t get it
to work.
Instead I made a loop to go through all paragraphs in the document.

Is it possible to use the Find Method to locate lists with Bullets?
Best Regards
Mats
Signature

ESI Update

> Hi Mats,
>
[quoted text clipped - 24 lines]
>
> To the best of my knowledge.
Helmut Weber - 29 May 2006 09:24 GMT
Hi Mats,

> Is it possible to use the Find Method to locate lists with Bullets?

not to my knowledge, except they are based on a template.
Then you could search for a paragraph based on that template.

Or, maybe your listparagraphs have something in common,
like the same hanging indent or some tabstopps at the same
position. But then you would search for a paragraph with
these specifications, not for a listparagraph.

HTH

Signature

Greetings from Bavaria, Germany
Helmut Weber, MVP WordVBA
"red.sys" & chr(64) & "t-online.de"
Word 2002, Windows 2000

 
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.