#1
|
|||
|
|||
Creating a generic macro?
Does anyone know how to create a macro that will copy whatever paragraph the cursor is placed in front of to another document? I can create one that copies specific paras, but I need one that will copy whatever is in front of the cursor with just one command. Is it possible? Thanks
|
#2
|
||||
|
||||
Hi suerose,
The code to copy the current paragraph, regarless of where the cursor is in it, is: Selection.Paragraphs.First.Range.Copy
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#3
|
||||
|
||||
Cross-posted at: http://answers.microsoft.com/en-us/o...c-5b6fd3e3cbc9 (It seems I wasted time answering a question that's already been answered there).
For cross-posting etiquette, please read: http://www.excelguru.ca/node/7
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
Tags |
generic, macro |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Creating macro to convert/print to pdf | shabbaranks | Word | 3 | 05-18-2011 08:59 AM |
creating macro for biffurcation in sheets according to data. | Nirik | Excel Programming | 8 | 05-07-2011 05:11 AM |
Creating a MACRO | Nikb3522 | Word VBA | 0 | 10-21-2010 05:55 PM |
creating macro | steveb | Word VBA | 0 | 08-14-2010 01:29 AM |
Weird problem with generic file icons in Office 2K | bankboysb | Office | 0 | 01-23-2006 02:10 PM |