Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Year Date Format
Sorry, I hit Post on the previous question accidently.....
To repeat, I am trying to extract the year only in a cell based on the date in another cell. What I have in vba is: Range("J4").Select ActiveCell.FormulaR1C1 = "=text(b4, "yyyy")" This returns an error: Compile Error: Expected: end of statement What am I doing wrong. Thanks -- Linda |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Year date format | Excel Programming | |||
Format date with just month and year | Excel Discussion (Misc queries) | |||
date format, looking for a date in column A that is one year ago | Excel Programming | |||
day/month/year in incorrect format for date format | Excel Worksheet Functions | |||
Month Year Date Format | Excel Worksheet Functions |