Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin

...

Remarks

All of the settings, configuration, and values on the original slide will be both preserved on the original slide and copied to the new slide.

Slides cannot be copied between different presentations.

Example
Code Block
csharp
csharp
titleC#
//An example of copying worksheetsslides betweenwithin workbooksa presentation
PowerPointApplication ppta = new PowerPointApplication();
Presentation presSourcepres = xlappta.Open("sourceWorkbook");
Workbook wbDest = xla.Open("destWorkbook"template.pptx");

//Copy a worksheetslide from the sourcebeginning workbookof into the destinationpresentation workbookto //Insert the copy at the beginning end of the workbookpresentation
WorksheetSlide wsToCopyslideToCopy = wbSourcepres.WorksheetsSlides[0];
wbDestpres.WorksheetsSlides.CopySheetCopySlide(wsToCopyslideTocopy, 0, wsToCopy.Name);
(pres.Slides.Count));


Code Block
vbnet
vbnet
titlevb.net
'An example of copying worksheetsslides betweenwithin workbooksa presentation
Dim xlappta As ExcelApplicationPowerPointApplication = new ExcelApplicationPowerPointApplication()
Dim wbSourcepres As WorkbookPresentation = xlappta.Open("sourceWorkbook")
Dim wbDest As Workbook = xla.Open("destWorkbook"template.pptx")

'Copy a worksheetslide from the sourcebeginning workbookof into the destinationpresentation workbookto 'Insert the copy at the beginning end of the workbookpresentation
Dim wsToCopyslideToCopy As WorksheetSlide = wbSourcepres.WorksheetsSlides(0)
wbDestpres.WorksheetsSlides.CopySheetCopySlide(wsToCopyslideTocopy, 0, wsToCopy.Name)(pres.Slides.Count))