View Single Post
 
Old 03-27-2023, 10:38 PM
Guessed's Avatar
Guessed Guessed is offline Windows 10 Office 2016
Expert
 
Join Date: Mar 2010
Location: Canberra/Melbourne Australia
Posts: 4,176
Guessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant future
Default

Often when you are pasting in content from html sources you end up with a lot of tabular text which is more than just a paragraph mark between the paragraphs. The code you have shown won't merge content in table cells or floating text boxes. Also some of the code only works on selected text - which presupposes you have actually selected the text before running that code.

Obviously, we can't see what content you are actually trying to run this code on. Perhaps it would be clearer if you attached a document that contains the sort of content you want the code to work on.
__________________
Andrew Lockton
Chrysalis Design, Melbourne Australia
Reply With Quote