![]() |
|
#2
|
||||
|
||||
|
Here you will find how to apply your macro to the current paragraph LINK .
The linked macro will automatically select the current paragraph if you substitute: Code:
Debug.Print GetParagraphIndex(r) Code:
ActiveDocument.Paragraphs(GetParagraphIndex(r)).Range.Select If it does what you need then you can easily merge the codes into a single Macro + Function and assign it to a shortcut key. |
| Tags |
| find & replace, word 19, word vba |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Applying a VBA code only on a selected table | RobertDany | Word VBA | 5 | 10-25-2021 09:28 PM |
| Applying a VBA code only on a selected text or range | RobertDany | Word VBA | 2 | 10-09-2021 08:31 AM |
applying heading style within paragraph using macro
|
cheech1981 | Word | 8 | 08-23-2017 03:07 PM |
Applying style to first part of paragraph
|
foxtrot | Word | 3 | 07-24-2012 07:30 AM |
| Does Word do this when applying Styles to a paragraph a second time? | Bobosmite | Word | 2 | 04-17-2012 02:13 PM |