![]() |
|
|||||||
|
|
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 |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
How to Remove trailing spaces AND line breaks in a block of text
|
JulianS96 | Word | 4 | 02-04-2020 04:20 AM |
Deleting text but keeping adjacent spaces
|
Alsadius | Word VBA | 6 | 03-04-2019 02:50 PM |
Removing trailing spaces from footnotes
|
risomd | Word VBA | 11 | 08-30-2018 06:00 PM |
How to remove trailing & leading spaces in a cell?
|
LearnerExcel | Excel Programming | 8 | 02-04-2018 08:22 PM |
Mail Merge - Trailing Spaces
|
osucjb | Mail Merge | 5 | 10-28-2016 12:03 AM |