Hi Everyone -
mKounter = 6
Range("M" & mKounter).Formula = "=If(mKounter=6,=counta("M6:M6"),=counta("M6:M" &mkounter - 1))"
Trying to have VBA enter a count formula, depending on the value of mKounter. If there are no data rows, it should be M6:M6. If data rows are present, then count all rows, M6:M (whatever mKounter happens to be).
Getting: Expected: end of statement error message.
Appreciate any guidance on this.
Thanks,
Sluggy
Bookmarks