ChrisOswald
Active Member
- Joined
- Jan 19, 2010
- Messages
- 454
Hi,
Does anybody know if it's possible to return the text in a textbox control that is selected? the closest I've come is this code:
which puts the entirety of the contents of me.txtbody in the msgbox.
Does anybody know if it's possible to return the text in a textbox control that is selected? the closest I've come is this code:
Code:
Private Sub Command24_Click()
Dim myCntl As Control
Set myCntl = Me.txtBody
myCntl.SetFocus
MsgBox (myCntl.SelText)
End Sub