PDA

View Full Version : Formatted text from text frame



Cosmo
10-11-2013, 10:04 AM
I am pulling text from a presentation into a Word document, and I would like to be able to keep the formatting. I know that Word has a 'Range.FormattedText' property, is there a corresponding command I can use to pull the formatted text out of the Powerpoint file, or do I need to loop through the TextRange.Runs in the TextFrame?

John Wilson
10-11-2013, 11:01 AM
IF you were doing this manually mark would copy in PPT and Right Click in Word >> Paste (Keep source format) do what you need??

Cosmo
10-11-2013, 12:37 PM
IF you were doing this manually mark would copy in PPT and Right Click in Word >> Paste (Keep source format) do what you need??
Yes, that's what I'm looking to do, but I'd like to avoid using the clipboard if at all possible.

John Wilson
10-11-2013, 11:48 PM
This doesn't avoid the clipboard but you can run the code in the Paste(keep source format) button in WORD from code


Word.Application.CommandBars.ExecuteMso ("PasteSourceFormatting")