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

Quotes appearing around text

Status
Not open for further replies.

markronz

IS-IT--Management
Mar 20, 2007
93
US
What I ultimately need to do is copy the text from a textbox to the clipboard. I posted earlier and Skip had recommended that I just copy the contents of the textbox into a cell and then copy the cell, which will put it on the clipboard. This kind of works (thanks skip) however if my text in the textbox has line returns in it, it automatically puts quotes around the text when i paste it.

Example:

This is one line.

pastes as:

This is one line.


Example

This is two lines.
Yes it is.

pastes as:

"This is two lines.
Yes it is."

Hopefully that makes sense. Does anyone know how to avoid this? So that even if it contains line returns it pastes without the quotes?
 
Which VBA code does the paste ?

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top