Copying Worksheet with Chart issues

Toejam

New Member
Joined
Feb 17, 2009
Messages
2
First time posting so be gentle!

I have developed a worksheet for work which, amongst other things, presents a single embeded chart with log-log scales but which has two series plotted. The first are a number of datapoints (7-15), the second is a reduced data set and is essentially a regression line of sorts e.g. only has a start and end point (2 points). The built in excel regression lines were not sufficient.

The worksheet is a test certificate for tests that we do, and from time to time we need to have multiple tests (worksheets) within a workbook. To do this, using the worksheet.copy command in VBA we duplicate the worksheet within the workbook. The problem is that the subsequent worksheet charts series are still referencing "Test 1" rather than the new worksheet "Test 2", "Test 3" etc.

Even manually copying the worksheet results in the same issue. The issue does not manifest itself were we to only have a single series plotted.

This has only been an issue when we have "upgraded" from Excel 97 to Excel 2007. I have managed all other issues (VBA) etc but this fairly basic issue has me stumped.

Any suggestions gratefully recieved.

Thanks
 

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
Have established issue is my IT Dept not installing SP1 to Excel, issue now resolved but wanted to close out for other people suffering the same
:mad:
 
Upvote 0

Forum statistics

Threads
1,214,975
Messages
6,122,538
Members
449,088
Latest member
RandomExceller01

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top