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!

Removing return character taken from form into cell

Status
Not open for further replies.

DrBowes

Programmer
Jul 16, 2003
150
GB

I am taking data from textboxes to fill cells. The textboxes have Enterkeybehaviour and multiline set to true. The problem is when the values from the textboxes are put into a cell in Excel they contain a little square () where the returns were.

How can I stop these little squares showing in the cells?

I think something similar came up quite recently but I have not been able to find it.

Thanks very much in advance for your help.

DrB

 
In code:

range("A1").text = replace(textbox1.text,char(10),"")

Rgds, Geoff
[blue]Si hoc signum legere potes, operis boni in rebus Latinus alacribus et fructuosis potiri potes![/blue]
Want the [red]best[/red] answers to your questions ? faq222-2244
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top