![]() |
|
#1
|
|||
|
|||
|
I found the code here below in "Microsoft Learn - Title: Range.InsertAfter method (Word)"
But it seems to fail. Can someone explain? Thanks! Code:
Set doc = ActiveDocument Set rngRange = _ doc.Range(doc.Paragraphs(1).Start, _ doc.Paragraphs(1).End - 1) rngRange.InsertAfter _ " This is now the last sentence in paragraph one." |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
Changing Recorded Macro Selection/Clipboard Method to Range/FormattedText Method
|
zanodor | Word VBA | 5 | 07-15-2022 01:25 AM |
Intersect(Target, Sh.Range("AN4:AN5000")) can i reference this range another way?
|
trevorc | Excel Programming | 2 | 04-30-2021 05:05 AM |
| Change the Column reference 'S' to a range ??? Sheets("Customer").Range("S" & ActiveCell.Row) = Date | trevorc | Excel Programming | 1 | 03-04-2021 02:39 PM |
Title case macro gets a "type mismatch" error at the Instr method
|
marceepoo | Word VBA | 1 | 03-05-2020 09:41 PM |
Is there a Microsoft Word Form Method That Restricts Placement, Length, and Spell Che
|
petec | Word | 10 | 09-25-2011 08:41 AM |