Is there any way in MS Word to insert current week number? I need to make a template for the weekly report, and I'd like the week number field to be filled in automatically... What I need is something similar to Excel WEEKNUM() function.

link|improve this question

80% accept rate
feedback

2 Answers

This can be done with a VB Macro. This macro will insert the current week after the current selection.

Sub adddate()
    Selection.InsertAfter Text:=DatePart("ww", Date)
End Sub
link|improve this answer
1  
Of course this will work, but what I need is something more static - i.e. when I make a new document out of template, the week is already set correctly. Is this possible? – Michael Pliskin Jan 17 '11 at 16:19
feedback

If you want it in Word you need a Macro, but if you use Excel this might work.

Calculating the difference between each pair of dates listed in columns

A & B.

Solution:

To calculate the difference in days, use the DATEDIF function as shown in the following formula:

=DATEDIF(A2,B2,"d")

To calculate the difference in weeks, use the INT function as shown in the following formula:

=INT((B2-A2)/7)
link|improve this answer
sorry, in the next thing I answer i will be more carefully! thanks a lot – Sergio Feb 22 at 18:46
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.