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

Text box pasting

Status
Not open for further replies.

OwenHall

Technical User
Jul 23, 2002
21
GB
I am having problems pasting text into a textbox.

I have a code which is entered into a text box and when a command button is pressed it pastes the text into the text box. Which is easy. BUT, I want it the paste the text in, then when another code is entered and command button pressed the text pastes in to the same text box as the first! i.e.
-------------
|John Jones.|
-------------

-------------------------
|John Jones. Jenny Jones|
-------------------------
 
Here is a simple example of retaining a textbox's text and adding the value found in an excel cell.
Code:
TextBox1.Text = TextBox1.Text & Range("F1").Value
Hope this helps!

Clive [infinity]
Ex nihilo, nihil fit (Out of nothing, nothing comes)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top