troubleshooting Question

vba formula error

Avatar of Euro5
Euro5Flag for United States of America asked on
VBAMicrosoft ExcelMicrosoft Office
1 Comment1 Solution10 ViewsLast Modified:
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,""""})))"
ASKER CERTIFIED SOLUTION
Join our community to see this answer!
Unlock 1 Answer and 1 Comment.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 1 Comment.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros