If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > PC based Database Applications > Microsoft Excel > Replace a character with a hard return

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-14-07, 14:06
Joe1 Joe1 is offline
Registered User
 
Join Date: Nov 2004
Posts: 77
Replace a character with a hard return

I’m using Excel 2002
Is it possible to replace a special character (or a combination of mutable) with a hard return? (Alt Enter)

Thanks
Reply With Quote
  #2 (permalink)  
Old 06-14-07, 14:13
gvee gvee is offline
www.gvee.co.uk
 
Join Date: Jan 2007
Location: UK
Posts: 10,156
In VBA it should be possible
Here's some pseudo code
Code:
Replace(theText, "//", Chr(13) & Chr(10))
'Where // is our special character
__________________
George
Twitter | Blog
Reply With Quote
  #3 (permalink)  
Old 06-14-07, 14:17
Joe1 Joe1 is offline
Registered User
 
Join Date: Nov 2004
Posts: 77
Any way without VBA?
Thanks
Reply With Quote
  #4 (permalink)  
Old 06-14-07, 14:21
gvee gvee is offline
www.gvee.co.uk
 
Join Date: Jan 2007
Location: UK
Posts: 10,156
Why not play with the above code outside of VBA?
You may wish to look this up in the help files in Excel.
Let us know how you get on!
__________________
George
Twitter | Blog
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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