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 wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How can i display Part of a paragraph in a list box?

Status
Not open for further replies.

wabtrainer

IS-IT--Management
Feb 4, 2002
66
GB
I have text boxes that contain long two or three lines of text.
When I do a search for a string (Word or phrase) I only whant to display the first sentence that contains the string.
Does anyone know the VBA statement that will meet this requirement?


If you want to be a bear:
Be a Grizzly!
 




Hi,
Code:
msgbox Split(txtBox.Text,".")(0)
will display the first sentence in a txtBox object.

Skip,

[glasses] [red][/red]
[tongue]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top