如
t1.Filter = "年份 = '" & vars("year") & "'And sys_weekofyear = " & DatePart("ww",Date.Today.AddDays(- 7))
改成
t1.Filter = "学习科目 is not null and 年份 = '" & vars("year") & "'And sys_weekofyear = " & DatePart("ww",Date.Today.AddDays(- 7))