Home |
Search |
Today's Posts |
#1
![]() |
|||
|
|||
![]()
I want to declare an array, the size of which depends on the length of the
contents of a cell - so, if the cell contains 123456, I want to declare a 6 element array etc. However, when I try to run the following code, I'm told that I have to use a constant, as against an expression, when defining the array size. Can anyone suggest a way around this, please? Sub StringProcess() Dim ArrayLength As Integer ArrayLength = Len(ActiveCell.Value) Dim StoreArray(ArrayLength) As Integer End Sub Thanks in advance for your help Pete |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Can't create dynamic charts | Charts and Charting in Excel | |||
Match / Vlookup within an Array formula | Excel Discussion (Misc queries) | |||
Where is the bug in my array? | Excel Discussion (Misc queries) | |||
Formula to list unique values | Excel Worksheet Functions | |||
VBA Import of text file & Array parsing of that data | Excel Discussion (Misc queries) |