excel 日历控件怎么用 2007
发布网友
发布时间:2022-05-04 23:18
我来回答
共1个回答
热心网友
时间:2022-06-27 02:23
使用编程
将 ActiveCell = Format(Calendar1.value, "yyyy-mm-dd")替换为
ActiveCell = Calendar1.Value
将 If Target.Column = 1 Then
Me.Calendar1.Visible = True
Else
Me.Calendar1.Visible = False
End If
替换为
Application.ScreenUpdating = False
If Target.Row = 1 Then; 在制定行显示
Selection.NumberFormatLocal = "yyyy-mm-dd"
Me.Calendar1.Visible = True
Else
Me.Calendar1.Visible = False
End If