Hello
Can I declare a "constant array" in VBA?
What I would like to do is set up a constant which contains the number of days in each month (ignoring leap years), e.g.
Const DaysInMonth(12) as Integer = Array(0,31,28,31,30,31,30,31,31,30,31,30,31)
However, I'm unable to find the correct syntax. Is this possible in VBA? (I'm using Excel 97)
Regards
Hedges
Can I declare a "constant array" in VBA?
What I would like to do is set up a constant which contains the number of days in each month (ignoring leap years), e.g.
Const DaysInMonth(12) as Integer = Array(0,31,28,31,30,31,30,31,31,30,31,30,31)
However, I'm unable to find the correct syntax. Is this possible in VBA? (I'm using Excel 97)
Regards
Hedges