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

Popular posts from this blog

VBA01 Copy Resize Variably Sized Ranges

VBA MOD01 Passing Arguments to sub procedures (ByRef , By Val)

PY MOD01 Lecture 01