HI Brains trust
I have an issue in that when trying to insert a formula into my table i get a 1004 error and bumped in to debug mode.
the following code is from the macro I am working on. code in green is working but code in red does not work.
LastRow = Cells(Rows.Count, "B").End(xlUp).Row
Range("M2:M" & LastRow).FormulaR1C1 = "=sum(RC[1]/RC[-1])"
Columns("M:N").NumberFormat = "_-[$$-C09]* #,##0.00_-;-[$$-C09]* #,##0.00_-;_-[$$-C09]* ""-""??_-;_-@_-"
LastRow = Cells(Rows.Count, "B").End(xlUp).Row
Range("H2:H" & LastRow).FormulaR1C1 = "=trim(right(RC[-1],3)"
I have an issue in that when trying to insert a formula into my table i get a 1004 error and bumped in to debug mode.
the following code is from the macro I am working on. code in green is working but code in red does not work.
LastRow = Cells(Rows.Count, "B").End(xlUp).Row
Range("M2:M" & LastRow).FormulaR1C1 = "=sum(RC[1]/RC[-1])"
Columns("M:N").NumberFormat = "_-[$$-C09]* #,##0.00_-;-[$$-C09]* #,##0.00_-;_-[$$-C09]* ""-""??_-;_-@_-"
LastRow = Cells(Rows.Count, "B").End(xlUp).Row
Range("H2:H" & LastRow).FormulaR1C1 = "=trim(right(RC[-1],3)"