Good afternoon. I was looking at using an array in some code to store the position of a variable number of a certain character within a cell and came across this:
Now, my loop would probably only be about a dozen each time - if I decide to go down this road - but could be for thousands of rows of data. Would this actually have an impact (a discernible impact!) on what I ran? Or should I dim 0 to 100 instead?
Many thanks,
D€$
But do note that both ReDim and particularly ReDim Preserve have a heavy performance cost. Try to avoid doing this over and over in a loop if at all possible; your users will thank you.
Now, my loop would probably only be about a dozen each time - if I decide to go down this road - but could be for thousands of rows of data. Would this actually have an impact (a discernible impact!) on what I ran? Or should I dim 0 to 100 instead?
Many thanks,
D€$