79832760

Date: 2025-11-28 16:55:01
Score: 1
Natty:
Report link

This is how to calculate the date in a worksheet with the same value as strgen.You can check the date on the worksheet.

Cell H1 8 or 15

Cell H2

=TEXT(TODAY()-WEEKDAY(NOW(),1)+H1,"mm.dd.yy") & ".xlsm"
Function strgen()
    strgen = ThisWorkbook.Sheets("Sheet1").Range("H2").Value
End Function
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: motosann