I'm trying to copy text from a table cell into a new document. Everything works fine except that the pasted text has lost the style from the copied text. The style is a new paragraph style with some regular formatting choices, such as font type, font size and text indent. To paste I use...
Documents.Add.Content.PasteAndFormat (wdFormatOriginalFormatting)
I think i know where the problem lies. If I copy the whole table cell and paste, it will keep the formatted text with the correct style for all paragraphs. But it will paste it within a table cell and I just wanted the text without the table.
So I exclude the "table cell end mark (looks like a sun)" when copying. Then it will only paste the text (without the table as I wan't it to do) but the last paragraph loses the style.
If I add an extra paragraph mark (press Enter) when standing in the end of table cell and copy the cell without the "table cell end mark", it works like I wan't it to do...almost. The destination document has no table (yes!) and all paragraphs has the correct style (yes!), but also an unwanted extra paragraph mark in the end. And of course an unwanted extra empty paragraph in the table cell.
Any suggestions how to solve it?