I have the following code, which works when first created; however, will fail it seems when the clipboard data is cleared. Could someone help figure out what is causing this run-time error 1004?
Code:
Sub AssignM1()
'
' AssignM1 Macro
ActiveCell.FormulaR1C1 = _
"=IF(ISERROR(VLOOKUP(PLDbase[[#This Row],[Personnel '#]],'Permanent Locker Dbase.xlsm'!MONTH1,3,FALSE)),"""",(VLOOKUP(PLDbase[[#This Row],[Personnel '#]],'Permanent Locker Dbase.xlsm'!MONTH1,3,FALSE)))"
Range("M9").Select
ActiveSheet.Paste
End Sub