![]() |
|
|
Thread Tools | Display Modes |
#2
|
||||
|
||||
![]()
Can you explain exactly what you want the code to do?
As a start, the code you have supplied only works on the first selected paragraph. If you want the code to work on every paragraph and it involves deleting stuff then you should work backwards from the end of the document. The initial lines would then be... Code:
For e = ActiveDocument.Paragraphs.Count to 1 step -1 Set para = ActiveDocument.Paragraphs(e)
__________________
Andrew Lockton Chrysalis Design, Melbourne Australia |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
JulianS96 | Word | 4 | 02-04-2020 04:20 AM |
![]() |
Alsadius | Word VBA | 6 | 03-04-2019 02:50 PM |
![]() |
risomd | Word VBA | 11 | 08-30-2018 06:00 PM |
![]() |
LearnerExcel | Excel Programming | 8 | 02-04-2018 08:22 PM |
![]() |
osucjb | Mail Merge | 5 | 10-28-2016 12:03 AM |