19
Views
6
Comments
[Excel Package] Copying Excel Sheet from one workbook to another using Excel_Package
excel-package
Web icon
Forge asset by Alfaro
Application Type
Traditional Web

I want to copy the Excel sheet from one workbook to another workbook. I know there is one action for this named Workbook_AddCopyWorksheet, but I don't know how to use this in logic.

Can anyone guide me on how to implement this logic using the Excel_Package component. 

If possible, please share a sample OML.

Thanks & Regards,

Vishnu Shankar

2025-04-14 11-22-14
Aditi Saraswat

Hi @Vishnu shankar

You can check out this forum discussion—it provides helpful insights and a potential solution.

https://www.outsystems.com/forums/discussion/48363/excel-package-excel-package-merge-excel-files/

Hope this helps 

Thanks

UserImage.jpg
Vishnu shankar

Hi @Aditi Saraswat ,

Thanks for your response, but I already visited that page. I can't find any solution there, and I posted a comment on that page already regarding this issue.

Thanks

2025-04-14 11-22-14
Aditi Saraswat
2025-04-14 11-22-14
Aditi Saraswat

Hi @Vishnu shankar,

I am attaching the OML.

Hope this resolve your issue.

Thanks

CopyExcelWorksheet.oml
2022-12-22 10-00-39
Beatriz Sabino

Hi Vishnu,

There was a similiar post recently that will help you. The component in that post is Advanced Excel but the logic will be the same as in Excel Package.

2025-07-22 10-30-27
Mandar Deshpande

Hi @Vishnu shankar 

Considering the issue that you have mentioned, you can try an approach where you can build the destination workbook sheet manually.

If your sheet contains only data (no formulas, no formatting):

  • Read the source sheet using Worksheet_Read and Worksheet_ReadRange
  • Create a new worksheet in target using Workbook_AddWorksheet
  • Write the data into the target sheet Worksheet_WriteRange
Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.