I hope thread resurrection isn't too highly frowned on here, but this seems to be the closest topic to what I'm trying to do.
As below, I have a bunch of RTF files, and I want to display both their content (text) and formatting in a textbox on my form. I can't just cut & paste the data, because the source files may (probably will) change in the future. So what I would like to do is, during runtime, have VBA pull the contents of an RTF file into a (RichText) Memo field, so that it can be then displayed in a (RichText) textbox. What would be the correct code/syntax to accomplish this?
When I do this:
Code:
txtTest.ControlSource = "C:\DB\testrtf.rtf"
The contents of the textbox after updating are:
#Name?
P.S. I tried to open pkstormy's file that was linked to above, but the ZIP file gave me an error. I suspect that some of the code there may be helpful, but I can't seem to get to it.