Quote Originally Posted by salvelinus
Try setting rtfCode.Text to a string variable first, check that it's correct, then use that in the code.
Thanks salvelinus,
I have already tried this and it still had the same error.
I haven't tried "Me.rtfCode.Text" so I will give that a go.