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

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.

Rick Rothstein

MrExcel MVP
Joined
Apr 18, 2011
Messages
37,958
Office Version
  1. 2019
  2. 2010
Platform
  1. Windows
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
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,167,944
Messages
5,856,446
Members
431,814
Latest member
Oriel Tzvi Shaer

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
Top