I have designed a few somewhat complex graphs in Excel 2007 and whish to deploy these as an add-in. I have hence added the sheets with the graphs into my add-in and created a few buttons to copy this sheet into the ActiveWorkbook. The problem I'm encountering is graph is using several named ranges (dynamically sized) and when copying the sheet these named ranges are not kept but converted into the range they are pointing to at the time of copy, hence removing any dynamic behaviour.
I've solved this now by creating a code snippet that recreates the named ranges and relinks the graph formulas, but this is a really slow process. Has anybody been able to copy a sheet using VBA code where graph formulas using named ranges are kept intact?
I've solved this now by creating a code snippet that recreates the named ranges and relinks the graph formulas, but this is a really slow process. Has anybody been able to copy a sheet using VBA code where graph formulas using named ranges are kept intact?