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 / Long Documents / July 2007

Tip: Looking for answers? Try searching our database.

Paragraph selection in word macro

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
alan.remillard@googlemail.com - 09 Jul 2007 13:24 GMT
hello all,
I have a standard word document produced by a macro. Part of this
macro highlights a particular word in red. I need to extend the macro
to then search for this RED word and then move it and ita associated
paragraph to a new page. There could potentially be any number of RED
words and paragraphs to move. Moving the RED word is relatively easy
but moving its associated paragraph I can't do. From within word I can
highlight the paragraph by left clicking it 3 times, how do I achieve
this from within a macro?

If it can be selected then it is easy to move.

regards

Alan
Jonathan West - 09 Jul 2007 16:12 GMT
> hello all,
> I have a standard word document produced by a macro. Part of this
[quoted text clipped - 7 lines]
>
> If it can be selected then it is easy to move.

Selection.Paragraphs(1).Range.Select

Or better still, make your macro operate on the range directly without
selecting it.

Signature

Regards
Jonathan West - Word MVP
www.intelligentdocuments.co.uk
Please reply to the newsgroup
Keep your VBA code safe, sign the ClassicVB petition www.classicvb.org


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.