Hi,
The following code is intended to loop through a list of dates, format them into "YYYY"-format, check if there's an identical item in the array yet, add any new items to the array and write it to a worksheet. It returns 'runtime error 5 invalid procedure call or argument', though.
Private...