I need to copy sheets from one workbook to an other using VBA.
But I am having some trouble with named ranges.
Both the source file and the detination file have identical data sheets which contains various data - including a large number of named ranges.
These are used for lookup functions, data validation etc. on the other sheets.
I now need to copy these other sheets, but when doing so the named ranges in the destination file are changed, so that the ones which are used by the copied sheet now links to the source file.
I suppose that I could define the names again when I am done copying, but is there an easier way?
/Soren
But I am having some trouble with named ranges.
Both the source file and the detination file have identical data sheets which contains various data - including a large number of named ranges.
These are used for lookup functions, data validation etc. on the other sheets.
I now need to copy these other sheets, but when doing so the named ranges in the destination file are changed, so that the ones which are used by the copied sheet now links to the source file.
I suppose that I could define the names again when I am done copying, but is there an easier way?
/Soren
Last edited: