M
Mike
Have an RTF document with multiple text areas, each having some RTF formatting (bold, etc.). Each of these areas is contained in bookmark.
I've written a VBA module to loop through the bookmarks and copy the contents to memo fields in an Access database as rich text.
The only problem I am having is that the formatting (forecolor, bolding) does not come across. (I subsequently fetch the field from Access and display it in a rich text box in another app.)
What I do to copy the pieces out of the original RTF doc is:
UserForm1.rtb.Text = ActiveDocument.Bookmarks(szBookMark).Range
fld.Value = UserForm1.rtb.TextRTF
Any suggestions on how to capture the formatting as well? I suppose that I could copy each section to a file and then save the file into the dB but I was hoping to avoid that.
Thanks,
Mike
I've written a VBA module to loop through the bookmarks and copy the contents to memo fields in an Access database as rich text.
The only problem I am having is that the formatting (forecolor, bolding) does not come across. (I subsequently fetch the field from Access and display it in a rich text box in another app.)
What I do to copy the pieces out of the original RTF doc is:
UserForm1.rtb.Text = ActiveDocument.Bookmarks(szBookMark).Range
fld.Value = UserForm1.rtb.TextRTF
Any suggestions on how to capture the formatting as well? I suppose that I could copy each section to a file and then save the file into the dB but I was hoping to avoid that.
Thanks,
Mike