WxShady13
Board Regular
- Joined
- Jul 24, 2018
- Messages
- 185
- Office Version
- 365
- Platform
- Windows
- Mobile
I am trying to post the below code into a column of a table so that it will determine if an employee is Valid or Not Valid when it comes to whether or not they accrue vacation. When I paste this formula into a VBA script I get a Run-Time 1004 error. I cannot determine why...The worksheet name is correct and security has been removed.
Code:
Worksheets("Lost Time Records").Range("J2:J120").Formula = "=IF(And(I2>1/1/1950,I2<$M$24)""Valid"",""Not Valid"")"