ElvisSteel
Board Regular
- Joined
- Mar 23, 2009
- Messages
- 122
I have some VBA that requires an array to be initialised. It is a simple 8-element string array, which is working fine when populated in the code as follows:
I would like to have this populated from a named range, thereby allowing the user to modify the array values without changing the code.
I am sure this must be possible, and I realise I could do it by looping through the range data, but is there a neater way of achieving this.
I tried:
but this is not working
Any ideas?
Thanks
Code:
ArrayIn = Array("A", "B", "C", "D", "E", "F", "G", "H")
I am sure this must be possible, and I realise I could do it by looping through the range data, but is there a neater way of achieving this.
I tried:
Code:
ArrayIn = Array(Range("ArrayValues"))
Any ideas?
Thanks