WxShady13
Board Regular
- Joined
- Jul 24, 2018
- Messages
- 185
- Office Version
- 365
- Platform
- Windows
- Mobile
I am trying to have vba automatically place a formula in a range of cells to determine if the training date in the column beside it will be valid for the entire year. I cannot get the formula to paste into the new column.
'Dim lastRow as Long
'lastRow = Worksheets("New Year").range("c" & rows.count).End(xlUp).Row'
'Worksheets("New Year").range("J3:J" & lastRow).NumberFormat = "mm/dd/yyyy"
'Worksheets("New Year").range("J3:J" & lastRow).Formula = "=If(G3>12/31/2019,G3,If(G3=""COMPLETED"",""COMPLETED"","" "")"
Why does this not insert like the other formulas I have in the worksheet?
'Dim lastRow as Long
'lastRow = Worksheets("New Year").range("c" & rows.count).End(xlUp).Row'
'Worksheets("New Year").range("J3:J" & lastRow).NumberFormat = "mm/dd/yyyy"
'Worksheets("New Year").range("J3:J" & lastRow).Formula = "=If(G3>12/31/2019,G3,If(G3=""COMPLETED"",""COMPLETED"","" "")"
Why does this not insert like the other formulas I have in the worksheet?