@motosann, IMO, it's much easier to not calculate any date at all, instead find files (since they are saved somewhere,I suppose) with DIR("filename*.xlsx") and extract the date from whatever is found by the function to compare it with the current day.