I'm trying to right a macro that will insert a formula into cell G2 then auto fill it down to the last active row in column G.
This is my closest attempt but it fails on the 'Selection.Autofill' can anyone help please?
Many thanks
Robert
This is my closest attempt but it fails on the 'Selection.Autofill' can anyone help please?
HTML:
Range("G2").Select ActiveCell.FormulaR1C1 = _ "=SUBSTITUTE(LEFT(RC[-1],SEARCH("" "",RC[-1])-1),""."",""/"")+0" ActiveSheet.Range("G2", ActiveSheet.Range("G2").End(xlDown)).Select Selection.AutoFill
Many thanks
Robert