Hi,
I am trying to define a range in Excell, dynamically. Currently I am using the following:
Insert>Name>Define box -
sourcedata =OFFSET(Sheetname!$A$1,0,0,COUNTA(Sheetname!$A:$A),COUNTA(Sheetname!$1:$1))
But my main problem is that each week there is new data, in which the size of the columns vary, sometime col(G) is the largest column and so on. Ideally I need to know how to define cells(1,1).currentregion (from vba code) in the Defin dialog box.
Any suggestions?
Kind Regards,
Squibs
I am trying to define a range in Excell, dynamically. Currently I am using the following:
Insert>Name>Define box -
sourcedata =OFFSET(Sheetname!$A$1,0,0,COUNTA(Sheetname!$A:$A),COUNTA(Sheetname!$1:$1))
But my main problem is that each week there is new data, in which the size of the columns vary, sometime col(G) is the largest column and so on. Ideally I need to know how to define cells(1,1).currentregion (from vba code) in the Defin dialog box.
Any suggestions?
Kind Regards,
Squibs