VBA Convert date to week number

前端 未结 6 465
渐次进展
渐次进展 2021-01-12 12:01

In VBA I want to convert a date as 03/11/2017(DD/MM/YYYY) into the week number for that date.

Until now I have the following code:

   \'geting the d         


        
6条回答
  •  谎友^
    谎友^ (楼主)
    2021-01-12 12:41

    To make the Week Number with Monday as a first day, use the following:

    WorksheetFunction.WeekNum(now, vbMonday)
    

提交回复
热议问题