Hello Everybody
I'm held up on an RTF Rich Text problem. I want to copy the rich text from an active form into Word, via the clipboard.
I have tried this with the code from Phil Hawkin's article (recommended by Mike Lewis in thread1254-845690). But all of my attempts still paste the fully coded text into Word.
Copy and paste with the keyboard from my form into Word gives the perfectly formatted rich text. But this does have to be automated.
I've tried this using SelStart and SelLength. Then
_CLIPTEXT = oUserNotes.oleRTF.SelText
This pastes plain text.
So does:
_CLIPTEXT = oUserNotes.oleRTF.TextRTF
loWord.Selection.Paste
and so does
loWord.Selection.PasteSpecial
I've even tried all of this again with Phil's points about activating the clipboard in Rich Text Format too but I still get either plain text or it includes all the formatting codes.
I'm back to square one. Why won't my clipboard handle the change to RTF? Can anyone help please?
Kaz
I'm held up on an RTF Rich Text problem. I want to copy the rich text from an active form into Word, via the clipboard.
I have tried this with the code from Phil Hawkin's article (recommended by Mike Lewis in thread1254-845690). But all of my attempts still paste the fully coded text into Word.
Copy and paste with the keyboard from my form into Word gives the perfectly formatted rich text. But this does have to be automated.
I've tried this using SelStart and SelLength. Then
_CLIPTEXT = oUserNotes.oleRTF.SelText
This pastes plain text.
So does:
_CLIPTEXT = oUserNotes.oleRTF.TextRTF
loWord.Selection.Paste
and so does
loWord.Selection.PasteSpecial
I've even tried all of this again with Phil's points about activating the clipboard in Rich Text Format too but I still get either plain text or it includes all the formatting codes.
I'm back to square one. Why won't my clipboard handle the change to RTF? Can anyone help please?
Kaz