Hi,
This one should be easy for me but I’m having a brain cramp… if someone could help me out it would be greatly appreciated. I want the macro to put the following formula into cell AL2 in Excel, but my “” are giving me an error message. I know I’ve done this before, but I can’t remember how I got it to work, nor can I find where I used it before. My actual test macro is below the formula.
=IF(O2″CASHPAY”,”N/A”,IF(SUMIF($N$2:$N$65536,N2,$M$2:$M$65536)=0,”Cleared”,”O/S”))
Sub formula()
‘Add formula to column AL for CASHPAY check status
Sheet5.Select
Range(“AL2”) = “=IF(O2″CASHPAY”,”N/A”,IF(SUMIF($N$2:$N$65536,N2,$M$2:$M$65536)=0,”Cleared”,”O/S”))”
End Sub
Thanks!
Lana