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
 

Toejam

New Member
Joined
Feb 17, 2009
Messages
2
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:
 

Forum statistics

Threads
1,081,530
Messages
5,359,347
Members
400,524
Latest member
Excelbat

Some videos you may like

This Week's Hot Topics

  • VBA (Userform)
    Hi All, I just would like to know why my code isn't working. Here is my VBA code: [CODE=vba]Private Sub OKButton_Click() Dim i As Integer...
  • List box that changes fill color
    Hello, I have gone through so many pages trying to figure this out. I have a 2020 calendar that depending on the day needs to have a certain...
  • Remove duplicates and retain one. Cross-linked cases
    Hi all I ran out of google keywords to use and still couldn't find a reference how to achieve the results of a single count. It would be great if...
  • VBA Copy and Paste With Duplicates
    Hello All, I'm in need of some input. My VBA skills are sub-par at best. I've assembled this code from basic research and it works but is...
  • Macro
    is it possible for a macro to run if the active cell value is different to the value above it
  • IF DATE and TIME
    I currently use this to check if date has passed but i also need to set a time on it too. Is it possible? [CODE=vba]=IF(B:B>TODAY(),"Not...
Top