Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Extracting Year from date cell
The contents of the cell that I'm copying (and then pasting) in the formula
below is a date: Worksheets(Sheet1Name).Cells(Sheet1DateRowPointer, h). _ Copy Worksheets(Sheet2Name).Cells(Sheet2RowPointer, _ Sheet2YearColPointer) Prior to pasting, however, I need to extract just the Year value. But as best as I can tell, VBA does not support the YEAR function. Can someone kindly tell me how I can modify my code to extract and paste just the Year? Thanks in advance for any help. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Extracting date from Date and Time formatted cell | Excel Discussion (Misc queries) | |||
Help w/formula to add 1 year to cell (date done) date due? | Excel Worksheet Functions | |||
extracting year from a date | Excel Discussion (Misc queries) | |||
extract year from the date in a cell | Excel Worksheet Functions | |||
Extracting the Month from the Date in other cell | Excel Programming |