I am new to macros. I have few routine works which I can automate using macros. First step is to apply clean formula for all cells (entire sheet). I tried recording macro option. It works for only one file. I am unable to determine range function for entire data. Any idea or suggestion is appreciable.
How can I change the number below one
ActiveCell.Formula2R1C1 = "=CLEAN(Sheet1!RC:R[54234]C[21])"
Below is sample code.
Sheets.Add After:=ActiveSheet
Range("A1").Select
ActiveCell.Formula2R1C1 = "=CLEAN(Sheet1!C.End(xlDown))"