I have rich text data stored in sql using the actual RTF strings. I want to edit this data in excel.
How can i get this data using the string from SQL into an excel cell keeping the formatting intact?
Once that is done, how can I get this string back to SQL, meaning how can I get the rtf string from an excel cell?
Currently i do this using a Rich text box and word which works good for small amounts of data but when there are 20000 rows in excel, this take forever. I want to speed up the process by eliminating word and RTF box and using the clipboard in VBA.
I see that clipboard has settext and gettext functions which would work great but they don't seem to work in VBA.
What references do i need to add to vba macro for clipboard and what objects do I need to define.
I am trying
Temp1 = Clipboard.GetText(vbCFRTF)
which returns error saying object required.
I also want to do
clipboard.settext STR
where str is the string retrieved from the database so I can paste this in excel and edit it.
Is this possible? Thanks in advance for your time.
If anything can go wrong, it WILL.
How can i get this data using the string from SQL into an excel cell keeping the formatting intact?
Once that is done, how can I get this string back to SQL, meaning how can I get the rtf string from an excel cell?
Currently i do this using a Rich text box and word which works good for small amounts of data but when there are 20000 rows in excel, this take forever. I want to speed up the process by eliminating word and RTF box and using the clipboard in VBA.
I see that clipboard has settext and gettext functions which would work great but they don't seem to work in VBA.
What references do i need to add to vba macro for clipboard and what objects do I need to define.
I am trying
Temp1 = Clipboard.GetText(vbCFRTF)
which returns error saying object required.
I also want to do
clipboard.settext STR
where str is the string retrieved from the database so I can paste this in excel and edit it.
Is this possible? Thanks in advance for your time.
If anything can go wrong, it WILL.