Avatar of Euro5
Euro5
Flag for United States of America asked on

vba formula error

Wondering why I'm getting an error on this formula in VBA?
It works in the excel sheet, but when I run the subroutine,I get an error on this line.
Any help?? THANK YOU!

Range("AW2").Value = "=IF(OR(AV2="""",AV2>TODAY()),"""",LOOKUP(TODAY()-AV2,{0,8,15,22,29},{4,3,2,1,""""})))"
VBAMicrosoft ExcelMicrosoft Office

Avatar of undefined
Last Comment
zorvek (Kevin Jones)

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
zorvek (Kevin Jones)

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.
rwheeler23