Quote Originally Posted by om-yousif
Yes gavio it's working thanks



what about opening and loading the two texts
should work for opening.. i dun have vb to test though
On Error GoTo out
With CommonDialog1
.CancelError = True
.Filter = "Text files (*.txt)|*.txt"
.DialogTitle = "Open the file..."
.ShowOpen
If .FileName <> "" Then
RichTextBox1.LoadFile .FileName, rtfText
End If
End With
Exit Sub