I have an access database with a few fields that are rtf formatted text, i need to strip out the formatting and then load the tables into an oracle database. i exported the table to a .csv, and then wrote a few modules in vba to remove crlf's and such. i then wrote this procedure to strip out the rtf formatting:
i keep getting an error runtime error 387, set not permitted
when i hover over the error, the tooltip from the code states:
get not supported (write-only property)
from all i have read, this was one of the more suggested methods of doing this. what am i missing?
Code:
Sub convert()
Dim pobjCell As Range
Dim plCharCounter As Long
Dim richtextbox1 As New RichTextBox
Dim psCellText As String
For Each pobjCell In Selection
psCellText = pobjCell.Text
richtextbox1.TextRTF = psCellText
pobjCell.Value = richtextbox1.Text
Next
End Sub
i keep getting an error runtime error 387, set not permitted
when i hover over the error, the tooltip from the code states:
get not supported (write-only property)
from all i have read, this was one of the more suggested methods of doing this. what am i missing?