Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations sizbut on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Selected Text in a Form Textbox 1

Status
Not open for further replies.

GummowN

Programmer
Jul 26, 2002
157
GB
I want to know whether it is possible to pass a highlighted part of a text box as a variable

eg This is a textbox with some text in it.

Lets say "textbox with" is highlighted, you right click and select "Custom Action" a Msgbox popups with "textbox with"

Any suggestions outside of using the copy function?

If at first you don't succeed, try for the answer.
 
Hallo,

Look at the Sel... Control Properties in the help.

The control has to have the focus for these to work.

- Frink
 
Thanks for that.

I have managed to go 9 years without ever having to use Sel.... functions. And until I am sure I could have gone another 9!!!

A bit tidier then my Copy/Paste hack I wrote!

If at first you don't succeed, try for the answer.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top