Year date format
Activecell.Formula="=YEAR(B4)"
"mathel" wrote in message
...
I need to extract the year only in a cell from the date in another cell.
What I have tried is:
Range("J4").Select
ActiveCell.FormulaR1C1 = "=text(B4, "yyyy")"
Range("B3").Select
I get an error which reads: Compile error:
--
Linda
|