the thing is that the user can add some range names in the spreadsheet
and I don't want to update manually the macro grabbing all the values
each time. And for convenience of use, I am trying to use the same kind
of names in VBA arrays and XL range names (S1_Name3_Subname2 and
S1.Name3.Subname2). So basically I am trying to find a way to name a
new VBA array/variable with a name which itself is a variable
In php if the arrayname is stored in the variable $name, you can just
do $$name=....
and if $name="MyArray1", then you can directly use $MyArray1 in the
code.
not easy to describe clearly...
Charles
Bob Phillips wrote:
> Charles,
>
> What exactly are you trying to do? Do you want to create an array for each
> name, and then to load that array with the contents of the name? If so, what
> if the name is not a range, but say a formula, or a constant?
>
> --
> ---
> HTH
>
> Bob
|