I'm getting a syntax error at the below code, Please do help me soon
Thanks
Set rng = Range("AM4:AM" & Lastrow)
rng.Formula = "=IF(P4="Y",1,0)" //I need to execute this statement//
I have attached the screen shot of the error message with the whole code