bottom
Great WordTips!
         
Your e-mail address is safe!
Close Note

Tips.Net > WordTips Home > Editing > Transposing Two Paragraphs with WordBasic

Transposing Two Paragraphs with WordBasic

Summary: A WordBasic macro that transposes two adjacent paragraphs. (This tip works with Microsoft Word 6, and Word 95.)

As you are developing a document, there may be times when you want to transpose two adjacent paragraphs. All you need to do is position the insertion point between two words you want to transpose, and then issue the macro in this tip. If you position the cursor inside a paragraph, it assumes you want to transpose the current paragraph with the following. This macro, TransposeParagraphs, will do the trick if you are using WordBasic:

Sub MAIN
   ParaUp 1,1
   CharLeft
   ParaDown 1,1
   EditCut
   ParaDown
   EditPaste
End Sub

Tip #976 applies to Microsoft Word versions: 6 | 95


Step Up and Take Control! Subscribers to WordTips know just how valuable a resource it is. WordTips Premium provides twice the number of exceptional, easy-to-understand tips every week in an ad-free newsletter, as well as substantial discounts on WordTips archives and e-books.
 
Check out WordTips Premium today!

Helpful Links

Ask a Word Question
Make a Comment

Tips.Net Home
Tips.Net Store

WordTips FAQ
WordTips Premium

Learn Access Now

Beauty Tips
Car Tips
Cleaning Tips
College Tips
Cooking Tips
Excel2007 Tips
ExcelTips
Family Tips
Gardening Tips
Health Tips
Home Tips
Money Tips
Organizing Tips
Pest Tips
Pet Tips
Word2007 Tips
WordTips

Advertise on the
WordTips Site

 

Great Info!

Get tips like this every week in WordTips, a free productivity newsletter. Enter your e-mail address and click "Subscribe."
     
(Your e-mail address will never be shared with anyone, ever.)