Hi Narayan:
Following excel sheet was prepared to plot the charts (through your help).
Here is scenario how it works.
Columns: A to H, contains data that we enter weekly bases, remaining all columns are calculated and then charts are plotted.
In cell BJ4 & BJ5, we enter years range (start year and end year to plot charts). In cells BK4 & BK5, it returns row number of selected years (start year first date, end year last date). then these row numbers passed to defined range names to plot charts dynamically.
Up to here it works what we want. But we have more than one products, we need to create copies of this master sheet in same workbook. When we copy and give new name to sheet, data and charts are being taken from original/master sheet. Looks like defined name are working on workbook level.
What we want now, is there any simple macro or VBA code that makes range names available to local/active sheet. where we can enter data and select range of years locally and it should displays charts based on current/active sheet data in same workbook.
I am not looking to make big changes on current functionality because it is fully tested and working fine but looking for addition.
Sample file is too big can not upload here but have sent you via email.
Thanks