![]() |
|
|
Thread Tools | Display Modes |
#2
|
||||
|
||||
![]()
You can't copy the complete contents of a cell into a non-table. The complete contents of a cell includes the invisible end-of-cell marker as well as an invisible paragraph mark.
To fix this, try modifying this chunk Code:
' Copy the first row of the source table Set sourceText = sourceRow.Cells(2).Range 'Note I removed the formattedtext from here sourceText.End = sourceText.End - 1 'or 2 if you don't want the paragraph mark either ' Add the new paragraph targetText.Collapse Direction:=wdCollapseEnd targetText.FormattedText = sourceText.FormattedText
__________________
Andrew Lockton Chrysalis Design, Melbourne Australia |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Visualization with MS Project | idole | Project | 0 | 11-07-2018 12:46 AM |
Copying paragraphs from multiple documents to the current one. | paik1002 | Word VBA | 3 | 02-22-2016 04:03 AM |
Two visualization with the same file | bobparr | PowerPoint | 1 | 01-11-2015 09:22 AM |
![]() |
JerryL | Word | 1 | 02-09-2014 08:59 AM |
![]() |
andrew6800 | Outlook | 2 | 01-23-2011 06:02 PM |