![]() |
|
#19
|
||||
|
||||
|
I think I can see where your style movement is coming from.
Your code inserts heaps of paragraph marks. Paragraph marks is where the Paragraph style is stored. Then when you do a clean up in your second macro which removes the excess paragraph marks, the paragraph mark that ends up at the end of the paragraph comes from the trailing paragraph (hence the style below gets applied to the paragraph above). If you modify the first macro to avoid inserting extra paragraph marks then you won't need to merge paragraphs later on. Alternatively, you could remove the empty paragraphs instead of replacing two (or more) consecutive paragraph marks with one. I would fix the first macro and get rid of the extra paragraphs right up front to simplify the later processing.
__________________
Andrew Lockton Chrysalis Design, Melbourne Australia |
| Tags |
| 4605, copy/paste paragraph, tables |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
delete 1 or 2 adjacent duplicate paragraphs, macro
|
moorea21 | Word | 4 | 11-01-2018 12:53 PM |
How to find duplicate phrases/paragraphs in a long document
|
iamgator | Word VBA | 5 | 12-27-2016 01:34 AM |
Using VB.Net 2010 I cannot duplicate tables in the correct place
|
AaaTeX | Word Tables | 3 | 08-03-2014 07:00 PM |
| Show & hide paragraphs, parts of tables, etc | Preloader | Word | 2 | 10-19-2013 02:37 PM |
add the functionality to show & hide paragraphs, parts of tables, etc
|
pgwolfe | Word | 3 | 09-24-2013 07:58 PM |