Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
In VBA I'm trying to paste from a rich text control (RichTx32.ocx) to a
worksheet (Excel 2007) cell but the text always comes out as the unformatted RTF. How do I paste it so that it appears a properly formatted text? The code: Sub RFTTest() Dim richTextString As String richTextString = UserForm1.RichTextBox1.TextRTF Dim myDataObject As New dataObject Set myDataObject = New dataObject myDataObject.SetText richTextString ', &HBF01 '(This flag doesn't work either) myDataObject.PutInClipboard Worksheets("Sheet1").Range("D3").Select Selection.PasteSpecial End Sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
how to cut part of a text from one cell and automatically paste itonto another cell | Excel Discussion (Misc queries) | |||
How can I copy a value from a cell and paste it into another cell while adding it to the previous value in that cell | Excel Worksheet Functions | |||
Macro to paste in the active cell the contents of a cell from another file?? | Excel Programming | |||
Paste Link enters a 0 into the cell where I paste. How do I elemin | Excel Discussion (Misc queries) | |||
Copy and Paste macro needs to paste to a changing cell reference | Excel Programming |