That would appear to be the opposite of what Nawel is looking for.
That gives you a date, given a year and a week number. I believe Nawel is
looking for a weeknumber, given a date.
And while admittedly a picky point, I'd recommend using
TempDate = DateSerial(txtYear, 1, 1) - weekDay(DateSerial(txtYear, 1, 1),
vbMonday) + 1
instead of
TempDate = CDate("01/01/" & txtYear) - weekDay("01/01/" & txtYear, vbMonday)
+ 1
(it's picky in this case, because 01/01/yyyy will always be interpretted
correctly, regardless of how the Regional Settings are set. For other dates,
such as 02/10/yyyy, that isn't the case)