Here is a formula solution (no VBA required).
Assuming:
Cell A2
has the year.
Cell B2
has the week number.
Use this formula to get the WeekRange...
=TEXT(DATE(A2,1,1)+7*B2 - WEEKDAY(DATE(A2,1,1)+7*B2,1) + 1,"mm/dd/yy") & " - " & TEXT(DATE(A2,1,1)+7*B2 - WEEKDAY(DATE(A2,1,1)+7*B2,1) + 7,"mm/dd/yy")
The above also assumes you prefer the start of the week to be Sunday. If you would rather the start of the week be Monday then use this instead...
=TEXT(DATE(A2,1,1)+7*B2 - WEEKDAY(DATE(A2,1,1)+7*B2,2) + 1,"mm/dd/yy") & " - " & TEXT(DATE(A2,1,1)+7*B2 - WEEKDAY(DATE(A2,1,1)+7*B2,2) + 7,"mm/dd/yy")
Finally, you can change the format of the date by adjusting the occurrences of "mm/dd/yy"
to suit your need.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…