replace comma with alt+enter

user9

New Member
Joined
May 12, 2006
Messages
5
Hi everyone,

How can I replace a comma with alt+enter?

I have several words separated with commas in a cell, but they should be on separate lines. Find/Replace doesn't work too well since I don't know how to enter alt+enter.

Does anyoen have an idea?

Thanks in advance
 

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
In the Replace box:
Under Find, put a ,
Under Replace, hold down the Alt key and from the number keypad type 010
 
Upvote 0
Hi, user9
Welcome to the Board !!!

in the replacementbox write 010 while pressing the ALT-key
(you won't see appear anything)

this works for me

kind regards,
Erik

EDIT: Chr(10) is the equivalent for Alt+Enter
 
Upvote 0
Thanks a lot for the replies HOTPEPPER and erik.van.geit, and thank you for the welcome.

How did you figure out the following?
alt+010 = alt+enter
CHR(10) = alt + enter
 
Upvote 0
there are tables for this in the helpfiles
look for CHR or ASC or ASCII

I used this after typing Alt+Enter in a cell
Code:
Sub test()
MsgBox Asc(Left(ActiveCell, 1))
End Sub
 
Upvote 0
To find the code for any character type it in a cell, say A1. In another cell type =CODE(A1) . This will give you 10 for Alt+Enter. You usually have to add a zero infront of the number when entering it as prescribed above. This is a handy trick to know when trying to use special characters in a custom format. If you want to see the code of every character you can enter =CHAR(ROW()) into say A1 again. Click and hold on the right corner of the cell dragging it down til you receive a VALUE error around row 255. The row number is the character code. Try this with different fonts to get different characters i.e. Wingdings.
 
Upvote 0
babycody,

fine! there was to much VBA-code in my head yesterday :)

:LOL: Well you know I must have been board to type that lengthy explanation. I just like helping the new members the way other members here have so graciously helped me. If you have too much VBA in your head I'll gladly take some off your hands. :biggrin:
 
Upvote 0

Forum statistics

Threads
1,216,172
Messages
6,129,291
Members
449,498
Latest member
Lee_ray

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top