VBA中判断日期的合法性

VBA中判断日期的合法性
VBA中判断日期的合法性超级简单,不多说了,请看代码:
Private   Sub  CommandButton1_Click()
     
If   IsDate ( " 2009-02-29 00:00:00 " Then
        
MsgBox  ( " aaa " )
    
Else
        
MsgBox  ( " bbb " )
     
End   If
 
 
End Sub

你可能感兴趣的:(VBA中判断日期的合法性)