Hey all,
I am trying to duplicate a spreadsheet from a workbook to another, withoutchanging the formulas or the datasources of the charts it contains. The trickis that the worksheet I want to duplicate has (tons of) formulas and graphsthat use data from other worksheets. If I use the duplicate function the formulasand the charts will source its data from the original workbook
(Simplified) example:
I have a workbook A with two sheets:
I want to duplicate X in the workbook B so that X’ cell C1= [Y]D2, not = [workbook A][Y]D2.
Whether I do it from the excel interface or by using thevba copy/paste functions, the new worksheet will source its data from theprevious workbook.
For the formulas, I can use the ‘replace all’ function toremove all the [workbook A] the sheetcontains (dirty but it does the work) but I can’t find a way do it for the datasources of the charts.
Any idea ?
I am trying to duplicate a spreadsheet from a workbook to another, withoutchanging the formulas or the datasources of the charts it contains. The trickis that the worksheet I want to duplicate has (tons of) formulas and graphsthat use data from other worksheets. If I use the duplicate function the formulasand the charts will source its data from the original workbook
(Simplified) example:
I have a workbook A with two sheets:
- X with cell C1 = [Y]D2
- Y
I want to duplicate X in the workbook B so that X’ cell C1= [Y]D2, not = [workbook A][Y]D2.
Whether I do it from the excel interface or by using thevba copy/paste functions, the new worksheet will source its data from theprevious workbook.
For the formulas, I can use the ‘replace all’ function toremove all the [workbook A] the sheetcontains (dirty but it does the work) but I can’t find a way do it for the datasources of the charts.
Any idea ?