This is a pretty simplified example of what I'm doing regarding the number of cells involved. In Excel I have a name "Cells1" which contains:
=(B1;B3;B4)
I want to loop through this array constant with VBA. I have tried the following:
Sub Vaciar_nombres()
Dim R1() As Range
REM En la siguiente linea me salta error.
R1 = hoja_de_pruebas.Names("Celdas1").RefersTo
Debug.Print (VarType(R1))
End Sub
I haven't worked with array constants let alone using them with VBA. How can I take an array constant to later go through the ranges that are in that array using VBA? (I already know the loops)