Hi
Into Word document, document date (in format dd.mm.yyyy) is entered. Elsewhere in same document I need an ISO weeknumber of this date displayed. Probably an UDF must be defined to calculate it - something like (on fly)
Code:
Public Function WeekNo(parDate As Date) As Integer
WeekNo = DatePart(ww, parDate, 2, 2)
End Function
Ideally, in case the date is edited, the weeknumber in document must update too.
Is this possible?
a) in regular Word document;
b) in Word template only.