VBA MOD01 some VBA Fuctions
some VBA Fuctions
Sub VBA_Functions()
Dim currentMonth As Long
currentMonth = VBA.Month(VBA.Date)
Range("B3").Value = currentMonth
Range("B4").Value = VBA.MonthName(VBA.Month(VBA.Date))
Range("C5").Value = VBA.MonthName(Range("B5"))
Range("B9").Value = VBA.IsEmpty(Range("A9"))
Range("B10").Value = VBA.IsEmpty(Range("A10"))
Range("B11").Value = VBA.IsEmpty(Range("A11"))
Debug.Print TypeName(Range("B9").Value)
Debug.Print TypeName(Range("B4").Value)
End Sub
Comments
Post a Comment