So Easy, Yet i cant figure it out....!

ourfear

New Member
Joined
Jan 16, 2009
Messages
29
Bacically i want to write a Macro that will select each cell one at a time and double click it!!

I think it's supposed to look similar to this:

Sub CleanUp()
Dim TheCell As Range
For Each TheCell In ActiveSheet.UsedRange
With TheCell
ActiveCell.FormulaR1C1 = ""
End With
Next TheCell
End Sub

But i dont think that works at all!! lol


BAsicallyi have an export form one application into Excel and it has hidden it's Carriage Return code in Excel, if you double click a Cell it then becomes visible and can then be imported into a third application : )

Any help would be great!!


Cheers
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
hmmmm makes logical sense, but the cursor doesnt seem to move.....

Im waiting for a non-tampered with fresh import to try this code on, but in a blank rep, it doesnt budge and i thought it would.....
 
Upvote 0
It was more of a, "if the macro works surely the cursour would move" instead i click run and it just drops back to the spreadsheet!! lol BUT there arent any errors showing, so ill hold tight and see what happens with data in there :)
 
Upvote 0
There is no need to select cells to use their properties. The:

.Value = .Value

should be the equivalent of [F2] Enter.
 
Upvote 0

Forum statistics

Threads
1,214,611
Messages
6,120,513
Members
448,967
Latest member
screechyboy79

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