dan_l
Active Member
Hi,
I'm working on a userform. It's actually there to configure some functionality. It's got some dynamic listboxes.
Anyway, so
step 1: uses a refedit to get a range. User selects a range, presses a button. The range is passed to a array. The headers of the selected range are put into a listbox.
step 2: user select item from the list box in 1. Hits a button. That's when all that derivative functionality takes place.
The trouble is that the array erases after step 1. So, if I try to call it in step 2, I get an error. I have a couple of options that come to mind:
-Just redefine the array.
-Maybe output the array in a worksheet somewhere
Neither seems all that efficient. Is there a better way? I can post code or a sample, but I'm thinking this question is broad enough that it might not be required.
I'm working on a userform. It's actually there to configure some functionality. It's got some dynamic listboxes.
Anyway, so
step 1: uses a refedit to get a range. User selects a range, presses a button. The range is passed to a array. The headers of the selected range are put into a listbox.
step 2: user select item from the list box in 1. Hits a button. That's when all that derivative functionality takes place.
The trouble is that the array erases after step 1. So, if I try to call it in step 2, I get an error. I have a couple of options that come to mind:
-Just redefine the array.
-Maybe output the array in a worksheet somewhere
Neither seems all that efficient. Is there a better way? I can post code or a sample, but I'm thinking this question is broad enough that it might not be required.