Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.formatting.longdocs
[email protected] alan.remillard@googlemail.com is offline
external usenet poster
 
Posts: 1
Default Paragraph selection in word macro

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

  #2   Report Post  
Posted to microsoft.public.word.formatting.longdocs
Jonathan West Jonathan West is offline
external usenet poster
 
Posts: 25
Default Paragraph selection in word macro


wrote in message
ups.com...
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.


Selection.Paragraphs(1).Range.Select

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


--
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

Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
column selection or row selection using shortcut keys clara Tables 3 April 16th 07 07:48 AM
Quick selection of paragraph formats in Microsoft Word Clif Barber Microsoft Word Help 4 March 4th 07 10:32 PM
Paragraph alignment in a macro jezzica85 Microsoft Word Help 2 July 23rd 06 06:50 AM
Paragraph-formatting macro clashing with style Style-tamer Microsoft Word Help 4 November 7th 05 01:29 AM
Using current selection in a word macro sebFlyte Microsoft Word Help 1 July 6th 05 04:22 PM


All times are GMT +1. The time now is 09:20 AM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"