Copy Text Formatting with Text

A

AdamB

Hey all,

I'm trying to copy text from one shape to another, including text formatting
such as Bold.

I have tried setting sourceShape.Style = destShape.Style as well copying the
TextStyle to no avail.

I was thinking about iterating through visSectionCharacter, but I'm not sure
I can set all the values at the destination (the row numbers appear to be
non-sequential, indicating the start of the text run).

Any ideas?

Thanks,
Adam
 
J

JuneTheSecond

Did you tried Characters property?

For example.
ActivePage.Shapes(1).Characters.Copy
ActivePage.Shapes(2).Characters.Paste

JuneTheSecond
 
A

AdamB

Wow! Yes that worked. Can't believe I didn't see that. I tried setting one
characters equal to the other but didn't try that.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top