# Move a worksheet to another excel

**URL:** <https://forum.robusta.ai/t/move-a-worksheet-to-another-excel/103>\
**Category:** FAQ\
**Created:** [April 28, 2022, 8:45am UTC](https://forum.robusta.ai/t/move-a-worksheet-to-another-excel/103 "2022-04-28T08:45:35Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ilayda.ipar](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robusta.ai/ilayda.ipar/32/56_2.png) [@ilayda.ipar](https://forum.robusta.ai/u/ilayda.ipar)\
**Post date:** [April 28, 2022, 8:45am UTC](https://forum.robusta.ai/t/move-a-worksheet-to-another-excel/103/1 "2022-04-28T08:45:35Z")

</div>

In MS-Excel activity, it is impossible to move sheets between 2 different excels. However, you can use the following Vbs for this.

Worksheets(x) Whatever number you enter instead of x will move the page in a specific order in excel.

```auto
Set xlapp = CreateObject("Excel.Application")
xlapp.Visible = False
xlapp.DisplayAlerts = False
Set x = xlapp.Workbooks.Open("C:\Robusta\aaaa\Excel Folder\Aktif Noktalar.xlsx")
Set y = xlapp.Workbooks.Open("C:\Robusta\aaaa\Guncel Paket\Perakende_backup.xlsx") 
Set WSx = x.Worksheets(1) 
Set WSy = y.Worksheets(1)
WSy.Copy WSx 
x.Save
x.Close
y.Close

```
