ur helping me alot man...
but thats the same thing i tried this morning...and it wont work...i dont know whats wrong...i was taking a look at the rtf tags themselves and the only way i could get it to combine the strings at all was removing all the second strings formating and taking the } off the end of the last paragraph of the first string...maybe im doing something wrong i dunno...if ur busy and im being annoying u dont haveta answer man ill figure it out eventually
thanx man i didnt think i was going nuts
i guess there arent any easy solutions as far as this one...real work...oh well...i guess i better get used to it...lol...just trying to stumble through teaching myself new stuff and still have time school and life and all that other stuff...well thanx for all ur help man
peace
Another way to combine RTFs
Another way to solve the problem is to create a scratch RTF area and let that object do the combination work for you. The example below places a header followed by chat data into a scratch RTF area and then saves the combined information into a file (note: the rtbScratchArea has Visible=False):
Dim intFileNo As Long
rtbScratchArea.Text = ""
rtbScratchArea.SelStart = 0
rtbScratchArea.SelColor = &HFF00
rtbScratchArea.SelBold = 1
rtbScratchArea.SelText = "Header:" & vbCrLf
rtbScratchArea.SelStart = Len(rtbScratchArea.Text)
rtbScratchArea.SelRTF = rtbHeader.TextRTF
rtbScratchArea.SelStart = Len(rtbScratchArea.Text)
rtbScratchArea.SelColor = &HFF00
rtbScratchArea.SelBold = 1
rtbScratchArea.SelText = vbCrLf & "Chat:" & vbCrLf
rtbScratchArea.SelStart = Len(rtbScratchArea.Text)
rtbScratchArea.SelRTF = rtbChatArea.TextRTF
intFileNo = FreeFile
Open dlgCommon.FileName For Output As #intFileNo
Print #intFileNo, rtbScratchArea.TextRTF
Close #intFileNo
Enjoy!