(I have avidly searched the forum, but the only similar 'replace' questions I could find were related to Python, Java etc, and not VBA)
- I have a table within a MS Word (2010) document (it has two columns but only the second column has text in)
- Some cells in the second column have one line of text and NO paragraph mark
- Other cells in the second column have two lines of text and TWO paragraph marks (^p)
- There is no regular pattern between these two types of cells
- Where there is a second paragraph mark, this always occurs directly before the end-of-cell marker
I really need a macro to remove (replace with " ") this second (=final) paragraph mark from each cell where it occurs, but to ignore any first paragraph marks within the cells.
I would be extremely grateful if someone out there has the time and inclination to help me with this macro. As you might have guessed I have little experience in VBA despite attempting to give myself a crash course: I am more used to recording macros which is not an option in this more intricate case.
My hopes were raised when Google found me this- which looks like it could be adaptable http://www.vbaexpress.com/kb/getarticle.php?kb_id=334; but I have no idea how to tweak it to only replace a SECOND (/final) occurrence of ^p.
Thank you in advance.