Hi,
when I tried to copy a worksheet programmaticall y in Excel 2007 the chartObjects are not getting copied. I am getting empty charts inside my new worksheet. This is working in Excel 2003.
Excel.Applicati on.Worksheets(" Sheet1").ChartO bjects.Count //I am getting 2 here.
Excel.Applicati on.worksheets(" Sheet1").Copy After:= Excel.Applicati on.Worksheets(" Sheet2")
Excel.Applicati on.Worksheets(" Sheet1 (2)").ChartObje cts.Count // I am getting zero here.
Please advise me.
Thanks
when I tried to copy a worksheet programmaticall y in Excel 2007 the chartObjects are not getting copied. I am getting empty charts inside my new worksheet. This is working in Excel 2003.
Excel.Applicati on.Worksheets(" Sheet1").ChartO bjects.Count //I am getting 2 here.
Excel.Applicati on.worksheets(" Sheet1").Copy After:= Excel.Applicati on.Worksheets(" Sheet2")
Excel.Applicati on.Worksheets(" Sheet1 (2)").ChartObje cts.Count // I am getting zero here.
Please advise me.
Thanks
Comment