J
JMay
My current studybook just showed me how to create this array; and I'm able
to test it in the Immediate Window and it works; that is when I enter "?
Monthname(4)" (I get )April (Great!!)
so what else can I do with it; I'm clueless..
Option Explicit
Option Base 1
Sub MonthArray()
Dim MonthName(1 To 12) As String
MonthNames(1) = "Janaury"
MonthNames(2) = "February"
MonthNames(3) = "March"
MonthNames(4) = "April"
MonthNames(5) = "May"
MonthNames(6) = "June"
MonthNames(7) = "July"
MonthNames(8) = "August"
MonthNames(9) = "September"
MonthNames(10) = "October"
MonthNames(11) = "November"
MonthNames(12) = "December"
End Sub
to test it in the Immediate Window and it works; that is when I enter "?
Monthname(4)" (I get )April (Great!!)
so what else can I do with it; I'm clueless..
Option Explicit
Option Base 1
Sub MonthArray()
Dim MonthName(1 To 12) As String
MonthNames(1) = "Janaury"
MonthNames(2) = "February"
MonthNames(3) = "March"
MonthNames(4) = "April"
MonthNames(5) = "May"
MonthNames(6) = "June"
MonthNames(7) = "July"
MonthNames(8) = "August"
MonthNames(9) = "September"
MonthNames(10) = "October"
MonthNames(11) = "November"
MonthNames(12) = "December"
End Sub