AddCopy sheet location

After performing an Workbook.Worksheets.AddCopy(Index) is it possible to move the newly created sheet to a different location within the workbook. ie. Start: [Tab 1][Tab 2][Tab 3] AddCopy(1) After: [Tab 1][Tab 2][Tab 3][Tab 1_1] <-- new Some move magic... Want: [Tab 1][Tab 1_1][Tab 2][Tab 3] Thanks!

2 Replies

AD Administrator Syncfusion Team September 16, 2005 04:42 AM UTC

>After performing an Workbook.Worksheets.AddCopy(Index) is it possible to move the newly created sheet to a different location within the workbook. > >ie. >Start: [Tab 1][Tab 2][Tab 3] >AddCopy(1) >After: [Tab 1][Tab 2][Tab 3][Tab 1_1] <-- new >Some move magic... >Want: [Tab 1][Tab 1_1][Tab 2][Tab 3] > >Thanks! As I know there is no way to set needed place for Sheet within the Sheets collection


AD Administrator Syncfusion Team September 16, 2005 04:43 AM UTC

Hi Roderick, I put together a sample based on your requirements. Please take a look at this sample and let me know if you have any questions. CopyWorkSheetToAnotherWorkBook_4332.zip Best Regards, Seetha. >After performing an Workbook.Worksheets.AddCopy(Index) is it possible to move the newly created sheet to a different location within the workbook. > >ie. >Start: [Tab 1][Tab 2][Tab 3] >AddCopy(1) >After: [Tab 1][Tab 2][Tab 3][Tab 1_1] <-- new >Some move magic... >Want: [Tab 1][Tab 1_1][Tab 2][Tab 3] > >Thanks!

Loader.
Up arrow icon