Hello to everyone!
I'm a newbie with vba so i would like to know is my idea is viable
I would like to allow my user to update a select case statament without having them to edit the code.
I just wrote values i want to use in select case in a range and built an array:
Dim BOX_INPS As Variant
BOX_INPS = Worksheets("CONFIGURAZIONE").Range("G2:G4")
Now i wonder if is possible to write a macro like this
select case
case <<array contents, values in Range("G2:G4") >>
do this
case else (or another array
)
do this
end select
If is not possible i would to know if there is a way to split array into
string and have select case working with
Thank you in advance!
I'm a newbie with vba so i would like to know is my idea is viable
I would like to allow my user to update a select case statament without having them to edit the code.
I just wrote values i want to use in select case in a range and built an array:
Dim BOX_INPS As Variant
BOX_INPS = Worksheets("CONFIGURAZIONE").Range("G2:G4")
Now i wonder if is possible to write a macro like this
select case
case <<array contents, values in Range("G2:G4") >>
do this
case else (or another array

do this
end select
If is not possible i would to know if there is a way to split array into
string and have select case working with

Thank you in advance!