LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 860
Default How can I delete the end of line (result of shift-enter)

Hi Kali,

You need to replace the vbCR (carriage returns) with empty strings when
writing it to a cell:

Sheets("Sheet1").Range("A1").Value = Replace$(txtTest.Text, vbCr, "")

--
Regards,

Jake Marx
www.longhead.com


Kali wrote:
Hello there

I have a form with multilined text boxes, in order to
insert several lines I go "shift-enter", but when I save
it, there is an extra character at the end of each line.
I would really like to get rid of it.

If you could help me, it would be great.

Thanks!
Kali


 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Ctrl+shift+enter [email protected] Excel Worksheet Functions 9 March 26th 09 11:46 AM
What is Ctrl + Shift + Enter ? lawson Excel Discussion (Misc queries) 6 June 26th 07 08:17 PM
How do I enter a formula that will delete a line when a cell = 0? Jen Excel Worksheet Functions 1 April 11th 06 06:21 PM
What does hitting Ctrl + Shift + Enter to enter a formula do??? Help a n00b out. qwopzxnm Excel Worksheet Functions 2 October 20th 05 09:06 PM
ctrl+shift+enter vs enter tkaplan Excel Discussion (Misc queries) 7 May 27th 05 05:10 PM


All times are GMT +1. The time now is 10:06 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"