关于获取当前的星期
各位大虾,请教个问题啊,基础不好,请多多指教!Function GetWeek(ThisDay)
If ThisDay<>"" And IsDate(ThisDay) Then
Dim CharWeek
CharWeek=Weekday(ThisDay)
Select Case CharWeek
Case 1
GetWeek="星期日"
Case 2
GetWeek="星期一"
Case 3
GetWeek="星期二"
Case 4
GetWeek="星期三"
Case 5
GetWeek="星期四"
Case 6
GetWeek="星期五"
Case 7
GetWeek="星期六"
End Select
End If
End Function 这段代码怎么用,才能在一个文本里插上当前星期几的结果?请赐教!