Hello,
how can I loop through ranges. What I have already tried so far.
Is it possible?
Dim Variabel as Range
Dim Variabel_1 as Range
Dim Variabel_2 as Range
Dim Variabel_3 as Range
Dim I as Long
' the ranges are as an example
Set Variabel_1 = Range("A1")
Set Variabel_2 = Range("B5")
Set Variabel_3 = Range("C10")
For I = 1 to 3
Set Variabel = Range("Variabel_" & I) ' What is wrong with at this part?
next I
how can I loop through ranges. What I have already tried so far.
Is it possible?
Dim Variabel as Range
Dim Variabel_1 as Range
Dim Variabel_2 as Range
Dim Variabel_3 as Range
Dim I as Long
' the ranges are as an example
Set Variabel_1 = Range("A1")
Set Variabel_2 = Range("B5")
Set Variabel_3 = Range("C10")
For I = 1 to 3
Set Variabel = Range("Variabel_" & I) ' What is wrong with at this part?
next I