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
 

Some videos you may like

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.

Rick Rothstein

MrExcel MVP
Joined
Apr 18, 2011
Messages
36,722
Office Version
  1. 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
 

Watch MrExcel Video

Forum statistics

Threads
1,123,514
Messages
5,602,093
Members
414,501
Latest member
mdhaumyu

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