Find this function
Private Function SendTextHnd() As Long
Replace the code inside of that function with this code
Dim iHnd As Long
iHnd = getPalSubForm(WindowClass, Combo1.Text, SplitterClass, SplitterIndex)
SendTextHnd = ChatHnd(iHnd, SendTxtIndex)
In your module GetSubFormHnd, add this function to it.
Public Function ChatHnd(ByVal hwnd As Long, ByVal lParam As Long) As Long
Dim retVal As Long
mTargetSubClass = "RichEdit20A"
mTargetSubClassIndex = lParam
IndexCount = 1
retVal = EnumChildWindows(hwnd, AddressOf EnumChildProc, lParam)
ChatHnd = mSubFormHnd
End Function