Page 1 of 1

CopySheet exception

Posted: Tue Dec 01, 2009 9:55 pm
by jburks
I'm trying to use CopySheet to make a copy of an existing worksheet, but I'm getting the exception "Unknown ptg[00] in AdjustCell". My code is pretty simple:

NewSheet := XLSRW.Sheets.Add;
XLSRW.CopySheet(CurrSheet.Index, NewSheet.Index);

I'm using the trial version if that matters, and I do get the trial message at the top of each new worksheet.

Using Delphi 7. The worksheets do have charts on them, but I get the same error if I delete the charts.

Thanks,
Jamie