Hi everyone,
I have a few names whose reference formula uses offset like :
colOf100Cells = offset($a$1 , 0 ,0 , 100 , 1 ).
Whenever I try to do something like :
I get an a runtime error 1004.
This so far happens only when the definition of the name includes offset.
I don't understand why since it's very clear what colof100cells refers or points to. If I use colOf100Cells in the worksheet, it works whenever a range is required.
Anyone knows of a workaround for this ?
Thanks,
I have a few names whose reference formula uses offset like :
colOf100Cells = offset($a$1 , 0 ,0 , 100 , 1 ).
Whenever I try to do something like :
Code:
dim somevar as range
set somevar = wbk.names("colOf100Cells").referstorange
I get an a runtime error 1004.
This so far happens only when the definition of the name includes offset.
I don't understand why since it's very clear what colof100cells refers or points to. If I use colOf100Cells in the worksheet, it works whenever a range is required.
Anyone knows of a workaround for this ?
Thanks,
Last edited: