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 / November 2004

Tip: Looking for answers? Try searching our database.

Continuing the Macro

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Steved - 23 Nov 2004 22:21 GMT
Hello from Steved

I've written myself a macro that extracts information from
a paragraph. When it has finished the cursor is on the
next paragraph, question how do I get it to do it
automatically instead of restarting the macro at each
paragraph please. Sometimes I've 300 hundred Paragraphs
and it would be good to start the macro and do all the
paragraphs to the end.
Thankyou.
Doug Robbins - 23 Nov 2004 23:52 GMT
Dim i as Long, pararange as Range
For i =1 to ActiveDocument.Paragraphs.Count
   Set pararange to ActiveDocument.Paragraphs(i).Range
   'Run your code on pararange
Next i
Signature

Please respond to the Newsgroup for the benefit of others who may be
interested.   Questions sent directly to me will only be answered on a paid
consulting basis.

Hope this helps,
Doug Robbins - Word MVP

> Hello from Steved
>
[quoted text clipped - 6 lines]
> paragraphs to the end.
> Thankyou.
Steved - 24 Nov 2004 00:38 GMT
Excellent I thankyou.

>-----Original Message-----
>Dim i as Long, pararange as Range
[quoted text clipped - 14 lines]
>
>.

Rate this thread:






 
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.