Macro to edit, enter, down

WyoDave

New Member
Joined
Jan 9, 2014
Messages
1
I have a column with text, but some shows as left justifed unless i hit 'edit (F2)', 'enter'.

How can i fix that - OR - how can i write a macro that works with i put the curser in any cell, then the macro runs edit, enter, down and then repeats to the bottom of the data in that column?

I used to run Lotus and could understand macro language there pretty good. visual basic has me stumped
 

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
I have a column with text, but some shows as left justifed unless i hit 'edit (F2)', 'enter'.

How can i fix that - OR - how can i write a macro that works with i put the curser in any cell, then the macro runs edit, enter, down and then repeats to the bottom of the data in that column?

I used to run Lotus and could understand macro language there pretty good. visual basic has me stumped

Give this a try and see if it works. Select the column or columns with these cell in them, then press ALT+F11 to go into the VB editor and execute the following line of code in the Immediate Window (press CTRL+G if you do not see it)...

Selection.Formula = Selection.Formula
 
Upvote 0

Forum statistics

Threads
1,215,488
Messages
6,125,092
Members
449,206
Latest member
ralemanygarcia

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