Thread: [Solved] Need Help with this Macro
View Single Post
 
Old 09-25-2018, 03:07 PM
macropod's Avatar
macropod macropod is offline Windows 7 64bit Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,467
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Quote:
Originally Posted by Jefgorbach View Post
if Im comprehending correctly, the wdPasteText keyword not only strips all of the original formatting (font, bold, etc) but also removes all but the final paragraph mark, thereby consolidating the selection into a single paragraph?
That is basically correct. Although all font & paragraph formatting is removed, other than a final paragraph break, no characters are deleted. Hence tabs, non-terminating paragraph breaks, & line-breaks in the copied data are output (the latter are converted to paragraph breaks). End-of-cell markers in copied tables are converted to tabs when pasted as unformatted text. If the copied data include two or more paragraph breaks at the end, only the final one is deleted.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote