Excel 2007 - VB autofill range help

F

Franci

I want to copy the formula down to the last row containing data, which
varies. What am I doing wrong?
Thanks.

Range("K2").Select
LastRow = Range("K2").End(xlUp).Row
ActiveCell.FormulaR1C1 = "=TEXT(RC[-1],""MMMM"")"
Selection.AutoFill Destination:=Range("K2:K" & LastRow)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top