JenniferMurphy
Well-known Member
- Joined
- Jul 23, 2011
- Messages
- 2,532
- Office Version
- 365
- Platform
- Windows
Is there a way I can define an array constant?
I tried to use the Array function
but it gets an error that it expected a constant expression. Seems like that is a constant expression to me, but what do I know?
I know I can define a constant list and then use Split to turn into an array, but that is not a constant.
Any other ways?
I tried to use the Array function
VBA Code:
Const cols As Variant = Array(1, 4, 7, 10, 13)
but it gets an error that it expected a constant expression. Seems like that is a constant expression to me, but what do I know?
I know I can define a constant list and then use Split to turn into an array, but that is not a constant.
Any other ways?