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 / April 2005

Tip: Looking for answers? Try searching our database.

Select current paragraph

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Robert Mark Bram - 03 Apr 2005 14:49 GMT
Hi All!

I want to write a macro to select the current paragraph and transpose it
with the paragraph before.

My problem is finding the command to select the current paragraph - the same
action that occurs on a triple click.

I began with this:
   Selection.MoveUp Unit:=wdParagraph, Count:=1
   Selection.MoveDown Unit:=wdParagraph, Count:=1, Extend:=wdExtend
but the above is not correct, since if the cursor happens to be at the
beginning of the current paragraph it ends up selecting the paragraph above.

Any advice would be most appreciated!

Rob
:)

Signature

http://phd.netcomp.monash.edu.au/RobertMarkBram/default.asp

Robert Mark Bram - 03 Apr 2005 14:57 GMT
> My problem is finding the command to select the current paragraph - the
> same action that occurs on a triple click.

Found my answer:
http://support.microsoft.com/?kbid=212529

Rob
:)

Signature

http://phd.netcomp.monash.edu.au/RobertMarkBram/default.asp

> Hi All!
>
[quoted text clipped - 15 lines]
> Rob
> :)
 
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.