Hi,
I am using the following code to calculate the size of a data list in Excel, and name the range of cells...
end_row = Range("A65000".End(xlUp).Row
Sheets(9).Range(Cells(2, 1), Cells(end_row, 9)).Select
Sheets(9).Names.Add Name:="test", RefersToR1C1:="='ECP FX'!R2C1:R6C9"
my problem is: when the size of the list changes, how do I overwrite the named range 'test'? is it possible to delete the named range before renaming it? also, how is the code " RefersToR1C1:="='ECP FX'!R2C1:R6C9" " changed to relative references from absolute cell references (to reflect the value 'end_row')??
TIA!
Ross
I am using the following code to calculate the size of a data list in Excel, and name the range of cells...
end_row = Range("A65000".End(xlUp).Row
Sheets(9).Range(Cells(2, 1), Cells(end_row, 9)).Select
Sheets(9).Names.Add Name:="test", RefersToR1C1:="='ECP FX'!R2C1:R6C9"
my problem is: when the size of the list changes, how do I overwrite the named range 'test'? is it possible to delete the named range before renaming it? also, how is the code " RefersToR1C1:="='ECP FX'!R2C1:R6C9" " changed to relative references from absolute cell references (to reflect the value 'end_row')??
TIA!
Ross