J
JP
I assign values to range objects from an array. Is is possible to loop this?
My code is:
Set rng1 =
Worksheets(varWorksheetInfoArray(0)).Cells.Find(varWorksheetInfoArray(1),
LookIn:=xlValues)
Set rng2 =
Worksheets(varWorksheetInfoArray(0)).Cells.Find(varWorksheetInfoArray(2),
LookIn:=xlValues)
Set rng3 =
Worksheets(varWorksheetInfoArray(0)).Cells.Find(varWorksheetInfoArray(3),
LookIn:=xlValues)
I can easily loop the array but how do you name the rng1, rng2 etc. ? They
are defined as Range. Thanks!
My code is:
Set rng1 =
Worksheets(varWorksheetInfoArray(0)).Cells.Find(varWorksheetInfoArray(1),
LookIn:=xlValues)
Set rng2 =
Worksheets(varWorksheetInfoArray(0)).Cells.Find(varWorksheetInfoArray(2),
LookIn:=xlValues)
Set rng3 =
Worksheets(varWorksheetInfoArray(0)).Cells.Find(varWorksheetInfoArray(3),
LookIn:=xlValues)
I can easily loop the array but how do you name the rng1, rng2 etc. ? They
are defined as Range. Thanks!