<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Batch File to Copy Sheet to another Excel File in Alteryx Designer Desktop Discussions</title>
    <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Batch-File-to-Copy-Sheet-to-another-Excel-File/m-p/1257755#M313447</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.alteryx.com/t5/user/viewprofilepage/user-id/311997"&gt;@flying008&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Let me upload the snapshots and kindly check since it is not producing an output. There is an error produced in the command prompt however I can't catch it since disappear very fast.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;The updated workflow&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="workflow.PNG" style="width: 400px;"&gt;&lt;img src="https://community.alteryx.com/t5/image/serverpage/image-id/348170i42AF9B5D579606C9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="workflow.PNG" alt="workflow.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;The BAT Code (Input)&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="BAT Code.PNG" style="width: 400px;"&gt;&lt;img src="https://community.alteryx.com/t5/image/serverpage/image-id/348171i94D392DAF88CE475/image-size/medium?v=v2&amp;amp;px=400" role="button" title="BAT Code.PNG" alt="BAT Code.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;Formula Tool (Replace)&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Formula Replace.PNG" style="width: 400px;"&gt;&lt;img src="https://community.alteryx.com/t5/image/serverpage/image-id/348172i96C0FBF7FC7448E6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Formula Replace.PNG" alt="Formula Replace.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;The results found in the BAT file. I've increased the size of BAT file to 3048 but still it is being truncated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="BAt Sheet.PNG" style="width: 400px;"&gt;&lt;img src="https://community.alteryx.com/t5/image/serverpage/image-id/348174i513D19E765E5CE20/image-size/medium?v=v2&amp;amp;px=400" role="button" title="BAt Sheet.PNG" alt="BAt Sheet.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="error.PNG" style="width: 400px;"&gt;&lt;img src="https://community.alteryx.com/t5/image/serverpage/image-id/348175iED7971A7C8C43140/image-size/medium?v=v2&amp;amp;px=400" role="button" title="error.PNG" alt="error.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;I tried looking what went wrong but I am not able to see it. Everything seems right. Please advise.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kamen&lt;/P&gt;</description>
    <pubDate>Tue, 02 Apr 2024 21:19:58 GMT</pubDate>
    <dc:creator>KamenRider</dc:creator>
    <dc:date>2024-04-02T21:19:58Z</dc:date>
    <item>
      <title>Batch File to Copy Sheet to another Excel File</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Batch-File-to-Copy-Sheet-to-another-Excel-File/m-p/1245848#M310134</link>
      <description>&lt;P&gt;Good Day,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there anyone from you who could write an autoexec.bat file that will copy the sheets to another excel file? The copy will be a clone with out any changes in the file formats. I am not very much knowledgeable on this but I am thinking maybe this will works since I have tried lot of things to solve this. I have a master file with multiple sheets and I would like to add a sheet coming from different excel file. I have tried many ways like using the blob tool but it is not working.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below are two sample excel file. The goal is to copy the sheet from Control.xlsx to Financial sample.xlsx without any changes in its formats. Financial sample is the master file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Looking forward for some bright ideas there.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kamen&lt;/P&gt;</description>
      <pubDate>Thu, 29 Feb 2024 11:15:04 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Batch-File-to-Copy-Sheet-to-another-Excel-File/m-p/1245848#M310134</guid>
      <dc:creator>KamenRider</dc:creator>
      <dc:date>2024-02-29T11:15:04Z</dc:date>
    </item>
    <item>
      <title>Re: Batch File to Copy Sheet to another Excel File</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Batch-File-to-Copy-Sheet-to-another-Excel-File/m-p/1245851#M310136</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="https://community.alteryx.com/t5/user/viewprofilepage/user-id/258327"&gt;@KamenRider&lt;/a&gt;&amp;nbsp;when I needed to do the similar thing, I went with Python tool.&lt;/P&gt;&lt;P&gt;You can manipulate Excel object by win32com library(I guess win32com is installed along with Designer as default, and no need to additionally install).&lt;/P&gt;&lt;P&gt;Though I cannot share my WF, please refer to the script inside Python tool. Even if you are not familiar with Python code, you can manage it somehow because it is a simple code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 400px;"&gt;&lt;img src="https://community.alteryx.com/t5/image/serverpage/image-id/343453i18B4736C16C02FE2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Feb 2024 11:49:21 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Batch-File-to-Copy-Sheet-to-another-Excel-File/m-p/1245851#M310136</guid>
      <dc:creator>gawa</dc:creator>
      <dc:date>2024-02-29T11:49:21Z</dc:date>
    </item>
    <item>
      <title>Re: Batch File to Copy Sheet to another Excel File</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Batch-File-to-Copy-Sheet-to-another-Excel-File/m-p/1245870#M310141</link>
      <description>&lt;P&gt;HI&amp;nbsp;&lt;a href="https://community.alteryx.com/t5/user/viewprofilepage/user-id/177620"&gt;@gawa&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;May I know how I am going to enter it in python tool and in what part of the code I am going to enter the two excel filename?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Kamen&lt;/P&gt;</description>
      <pubDate>Thu, 29 Feb 2024 13:02:40 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Batch-File-to-Copy-Sheet-to-another-Excel-File/m-p/1245870#M310141</guid>
      <dc:creator>KamenRider</dc:creator>
      <dc:date>2024-02-29T13:02:40Z</dc:date>
    </item>
    <item>
      <title>Re: Batch File to Copy Sheet to another Excel File</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Batch-File-to-Copy-Sheet-to-another-Excel-File/m-p/1246463#M310359</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I found a code, however it does not recognize the $file1 and $file2. Can someone help me with this? Please apologize that I am not expert on this so kindly provide a step step process on how it will be done. The batch file using the cmd tool will be the one to read it in Alteryx.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.alteryx.com/t5/user/viewprofilepage/user-id/4194"&gt;@Echo&lt;/a&gt; off&lt;BR /&gt;setlocal enabledelayedexpansion&lt;/P&gt;&lt;P&gt;$file1 = "C:\Users\Downloads\Copy Sheet\Controller PnL Template.xlsx" # source's fullpath&lt;BR /&gt;$file2 ="'C:\Users\Downloads\Copy Sheet\Financial Sample.xlsx" # destination's fullpath&lt;/P&gt;&lt;P&gt;powershell -Command "$xl = new-object -c excel.application;&lt;BR /&gt;$xl.displayAlerts = $false # don't prompt the user;&lt;BR /&gt;$wb2 = $xl.workbooks.open($file1, $null, $true) # open source, readonly;&lt;BR /&gt;$wb1 = $xl.workbooks.open($file2) # open target;&lt;BR /&gt;$sh1_wb1 = $wb1.sheets.item(2) # second sheet in destination workbook;&lt;BR /&gt;$sheetToCopy = $wb2.sheets.item('Controller PnL') # source sheet to copy;&lt;BR /&gt;$sheetToCopy.copy($sh1_wb1) # copy source sheet to destination workbook;&lt;BR /&gt;$wb2.close($false) # close source workbook w/o saving;&lt;BR /&gt;$wb1.close($true) # close and save destination workbook;&lt;BR /&gt;$xl.quit();&lt;BR /&gt;spps -n excel"&lt;/P&gt;&lt;P&gt;echo All Done.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks and hoping to hear from someone.&lt;/P&gt;&lt;P&gt;Kamen&lt;/P&gt;</description>
      <pubDate>Fri, 01 Mar 2024 21:17:00 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Batch-File-to-Copy-Sheet-to-another-Excel-File/m-p/1246463#M310359</guid>
      <dc:creator>KamenRider</dc:creator>
      <dc:date>2024-03-01T21:17:00Z</dc:date>
    </item>
    <item>
      <title>Re: Batch File to Copy Sheet to another Excel File</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Batch-File-to-Copy-Sheet-to-another-Excel-File/m-p/1246557#M310388</link>
      <description>&lt;P&gt;Hi, &lt;a href="https://community.alteryx.com/t5/user/viewprofilepage/user-id/258327"&gt;@KamenRider&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;FYI.&lt;/FONT&gt;&lt;/P&gt;&lt;LI-CODE lang="java"&gt;@echo off
setlocal enabledelayedexpansion
set "objFrom=D:\123\Control2.xlsx"
set "objTo=E:\456\Financial sample.xlsx"

@echo Copy WorkSheets From +++' %objFrom% '+++ To +++' %objTo% '+++ ...

powershell -Command "$objExcel = New-Object -ComObject Excel.Application; $objExcel.Visible = $false; $wkInput = $objExcel.Workbooks.Open('%objFrom%'); $wkOutput = $objExcel.Workbooks.Open('%objTo%'); foreach ($Sheet in $wkInput.Sheets) { if ($Sheet.Visible -eq -1) { $Sheet.Copy($wkOutput.Sheets.Item($wkOutput.Sheets.Count)); } }; $wkOutput.Save(); $wkOutput.Close(); $wkInput.Close(); $objExcel.Quit();"

@taskkill /f /im excel.exe
@echo *** All done ! ***&lt;/LI-CODE&gt;</description>
      <pubDate>Sat, 02 Mar 2024 08:15:37 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Batch-File-to-Copy-Sheet-to-another-Excel-File/m-p/1246557#M310388</guid>
      <dc:creator>flying008</dc:creator>
      <dc:date>2024-03-02T08:15:37Z</dc:date>
    </item>
    <item>
      <title>Re: Batch File to Copy Sheet to another Excel File</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Batch-File-to-Copy-Sheet-to-another-Excel-File/m-p/1246855#M310453</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.alteryx.com/t5/user/viewprofilepage/user-id/311997"&gt;@flying008&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks, the code works however can I add additional requirements -- the destination file added a date in the filename, it gets the Friday's date. For example:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Financial sample 2024.03.01.xlsx&lt;/P&gt;&lt;P&gt;Financial sample 2024.02.23.xlsx&lt;/P&gt;&lt;P&gt;Financial sample 2024.02.16.xlsx&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The workflow gets the date from the formula tool. Is it possible to call the date in the workflow using the batch file? or can the batch file compute the Friday date? or can the batch read the file with date that has been produced by the workflow in order the insert the sheet name every time I run it?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please advise. Kindly let me know if you have questions.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kamen&lt;/P&gt;</description>
      <pubDate>Mon, 04 Mar 2024 11:54:13 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Batch-File-to-Copy-Sheet-to-another-Excel-File/m-p/1246855#M310453</guid>
      <dc:creator>KamenRider</dc:creator>
      <dc:date>2024-03-04T11:54:13Z</dc:date>
    </item>
    <item>
      <title>Re: Batch File to Copy Sheet to another Excel File</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Batch-File-to-Copy-Sheet-to-another-Excel-File/m-p/1247149#M310536</link>
      <description>&lt;P&gt;Hi, &lt;a href="https://community.alteryx.com/t5/user/viewprofilepage/user-id/258327"&gt;@KamenRider&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;1- Is it possible to call the date in the workflow using the batch file?&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;Yes, use the code "%date:~0,4%%date:~5,2%%date:~8,2%" in bat file, you can see date of today.&lt;/FONT&gt;&lt;BR /&gt;2- or can the batch file compute the Friday date?&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;Yes, If you can assign the date for compute weekday.&lt;/FONT&gt;&lt;BR /&gt;3- or can the batch read the file with date that has been produced by the workflow in order the insert the sheet name every time I run it?&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;Yes, you can compute the date and file name by formula tool, then use ran command tool to output bat file and run it at once.&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Mar 2024 00:26:33 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Batch-File-to-Copy-Sheet-to-another-Excel-File/m-p/1247149#M310536</guid>
      <dc:creator>flying008</dc:creator>
      <dc:date>2024-03-05T00:26:33Z</dc:date>
    </item>
    <item>
      <title>Re: Batch File to Copy Sheet to another Excel File</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Batch-File-to-Copy-Sheet-to-another-Excel-File/m-p/1247383#M310592</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.alteryx.com/t5/user/viewprofilepage/user-id/311997"&gt;@flying008&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you please assist me again? I tried using the item # 1 below of connecting the workflow to the batch file and I am getting an error. See below details.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sample workflow:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Sample Workflow.PNG" style="width: 400px;"&gt;&lt;img src="https://community.alteryx.com/t5/image/serverpage/image-id/344051i42D1524F3A7D755D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Sample Workflow.PNG" alt="Sample Workflow.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Sample dos copy to.PNG" style="width: 400px;"&gt;&lt;img src="https://community.alteryx.com/t5/image/serverpage/image-id/344052i1FB6BC4DAD5734EF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Sample dos copy to.PNG" alt="Sample dos copy to.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Copy Sheet.PNG" style="width: 400px;"&gt;&lt;img src="https://community.alteryx.com/t5/image/serverpage/image-id/344054i052D61A739443133/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Copy Sheet.PNG" alt="Copy Sheet.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Error.PNG" style="width: 400px;"&gt;&lt;img src="https://community.alteryx.com/t5/image/serverpage/image-id/344055iE71941DE89D7BFF2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Error.PNG" alt="Error.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Please advise.&lt;/P&gt;&lt;P&gt;Kamen&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Tue, 05 Mar 2024 11:15:16 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Batch-File-to-Copy-Sheet-to-another-Excel-File/m-p/1247383#M310592</guid>
      <dc:creator>KamenRider</dc:creator>
      <dc:date>2024-03-05T11:15:16Z</dc:date>
    </item>
    <item>
      <title>Re: Batch File to Copy Sheet to another Excel File</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Batch-File-to-Copy-Sheet-to-another-Excel-File/m-p/1247728#M310691</link>
      <description>&lt;P&gt;Hi, &lt;a href="https://community.alteryx.com/t5/user/viewprofilepage/user-id/258327"&gt;@KamenRider&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;1- Did you enter your date manually or was it calculated by a formula?&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;2- Is your bat file hand-coded or is it generated and output by Alteryx?&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;3- Is your code set "obj******" in the BAT file? If so, the syntax is wrong, you can just change the last part to &lt;FONT color="#FF00FF"&gt;\Copy Sheet\Finacial Sample20240301.xlsx&lt;/FONT&gt;, or the bat file code is all generated by Alteryx, because you don't know your date logic, so you can't provide further instructions.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;4- BAT file code does not support syntax like Copy Sheet\Finacial Sample&lt;FONT color="#FF00FF"&gt; + [Date]&lt;/FONT&gt;.xlsx,&amp;nbsp; so you need to think about where exactly to generate your path.&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Mar 2024 01:21:38 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Batch-File-to-Copy-Sheet-to-another-Excel-File/m-p/1247728#M310691</guid>
      <dc:creator>flying008</dc:creator>
      <dc:date>2024-03-06T01:21:38Z</dc:date>
    </item>
    <item>
      <title>Re: Batch File to Copy Sheet to another Excel File</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Batch-File-to-Copy-Sheet-to-another-Excel-File/m-p/1247867#M310726</link>
      <description>&lt;P&gt;&lt;FONT color="#0000FF"&gt;1- Did you enter your date manually or was it calculated by a formula?&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;The sample shows the date has been manually entered however In the workflow I've created, the date came from a filename where it has been extracted.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;2- Is your bat file hand-coded or is it generated and output by Alteryx?&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;&lt;FONT color="#000000"&gt;Actually, for now, I am not really sure if this will works. What I am going to do is to insert the command prompt and insert the code you gave me.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sample workflow bat.PNG" style="width: 400px;"&gt;&lt;img src="https://community.alteryx.com/t5/image/serverpage/image-id/344240i9F9D59FCB96E3E19/image-size/medium?v=v2&amp;amp;px=400" role="button" title="sample workflow bat.PNG" alt="sample workflow bat.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;3- Is your code set "obj******" in the BAT file? If so, the syntax is wrong, you can just change the last part to&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;FONT color="#FF00FF"&gt;\Copy Sheet\Finacial Sample20240301.xlsx&lt;/FONT&gt;, or the bat file code is all generated by Alteryx, because you don't know your date logic, so you can't provide further instructions.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;Actually this is my dilemma now since the file is being updated with date in the filename when run everyday. I am not sure how can this file accept the tab or sheets to be added. I hope you can help me on this.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;4- BAT file code does not support syntax like Copy Sheet\Finacial Sample&lt;FONT color="#FF00FF"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;+ [Date]&lt;/FONT&gt;.xlsx,&amp;nbsp; so you need to think about where exactly to generate your path.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;I am not really good on this since I am a novice that needs to learn more. Is there a way you can think to solve this problem? Some says use python however I did not know how to use nor start it with Alteryx.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;Looking forward for your continued assistance and help.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;Thanks,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;Kamen&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Mar 2024 10:46:24 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Batch-File-to-Copy-Sheet-to-another-Excel-File/m-p/1247867#M310726</guid>
      <dc:creator>KamenRider</dc:creator>
      <dc:date>2024-03-06T10:46:24Z</dc:date>
    </item>
    <item>
      <title>Re: Batch File to Copy Sheet to another Excel File</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Batch-File-to-Copy-Sheet-to-another-Excel-File/m-p/1248127#M310798</link>
      <description>&lt;P&gt;Hi, &lt;a href="https://community.alteryx.com/t5/user/viewprofilepage/user-id/258327"&gt;@KamenRider&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;FYI.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="录制_2024_03_07_10_03_56_881.gif" style="width: 999px;"&gt;&lt;img src="https://community.alteryx.com/t5/image/serverpage/image-id/344328i2674838D1A7DBFFB/image-size/large?v=v2&amp;amp;px=999" role="button" title="录制_2024_03_07_10_03_56_881.gif" alt="录制_2024_03_07_10_03_56_881.gif" /&gt;&lt;/span&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Mar 2024 02:07:31 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Batch-File-to-Copy-Sheet-to-another-Excel-File/m-p/1248127#M310798</guid>
      <dc:creator>flying008</dc:creator>
      <dc:date>2024-03-07T02:07:31Z</dc:date>
    </item>
    <item>
      <title>Re: Batch File to Copy Sheet to another Excel File</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Batch-File-to-Copy-Sheet-to-another-Excel-File/m-p/1248411#M310894</link>
      <description>&lt;P&gt;HI&amp;nbsp;&lt;a href="https://community.alteryx.com/t5/user/viewprofilepage/user-id/311997"&gt;@flying008&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it possible for you to kindly attached the workflow? I have a hard time understanding it and figuring how I can connect it with the workflow I've created. Can you please explain to me the Data of Sheet input file? the text tool containing the bat file code whose "from" is source file and "to" is destination file? Do I need to change the file name in my shared drive to SourceFile and DestinatinFile?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="what this represemt.PNG" style="width: 400px;"&gt;&lt;img src="https://community.alteryx.com/t5/image/serverpage/image-id/344435i0A235621CF377850/image-size/medium?v=v2&amp;amp;px=400" role="button" title="what this represemt.PNG" alt="what this represemt.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Sorry for the question and my slowness,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kamen&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Mar 2024 17:42:36 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Batch-File-to-Copy-Sheet-to-another-Excel-File/m-p/1248411#M310894</guid>
      <dc:creator>KamenRider</dc:creator>
      <dc:date>2024-03-07T17:42:36Z</dc:date>
    </item>
    <item>
      <title>Re: Batch File to Copy Sheet to another Excel File</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Batch-File-to-Copy-Sheet-to-another-Excel-File/m-p/1248553#M310946</link>
      <description>&lt;P&gt;Hi, &lt;a href="https://community.alteryx.com/t5/user/viewprofilepage/user-id/258327"&gt;@KamenRider&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;The whole workflow animation is actually an idea for you to implement, Sorry due to security policy restrictions, I can't upload any workflow files.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#008000"&gt;******&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;1- Data of Sheet: The data here is an example of your source data, which is the data structure you want to output eventually.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;2- Bat Code: The text here is the code you want to use, the strings "SourceFile" and "DestinationFile" in the middle are just to demonstrate your file path, if your file path and file name are fixed, you can put the file path directly into the code, without the need to replace it with the Formula tool later.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;3- Formula tool for [Date]: It uses the formula tool to generate the date field you want, either manually or calculated using other fields.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;4- Append Fields: It combines the previous data source with the date field, and does not require special configuration, just for the later calculations.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;5- Formula tool for [Bat]: As mentioned earlier, if your file is not dynamic, then this step can be omitted, and if the file name needs to be replaced, then use the Replace function to implement the path and file name you want.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;6- Block Until Done: This is a sequential running tool, which is mainly here to get you to make the .xlsx files you want, and then run the Bat code to achieve the actions you want. Of course, I don't know if the data file you want to output will affect your BAT code, and if not, this step can be omitted.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;7+8- Select tool + Output: Unselected [Date] and [Bat] fields for output .xlsx later.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;9- Select tool : Only retain [Bat] field, Only the field is left in order to generate a bat file and run it later, so all other fields must be filtered out.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;10- Sample tool: only retain first 1 row for bat code once.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;11- Run Command: Output the [Bat] field as a bat file, either in a temporary folder, or any path you want to specify, and then run it by filling in the absolute path of the file in the command line arguments. Thus enabling operations such as batch copying multiple worksheets or renaming or deleting them at once.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#008000"&gt;******&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;Above, if you still have doubts, please step by step elaborate on your workflow and logic, otherwise it will be difficult for me to help you further.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Mar 2024 00:57:21 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Batch-File-to-Copy-Sheet-to-another-Excel-File/m-p/1248553#M310946</guid>
      <dc:creator>flying008</dc:creator>
      <dc:date>2024-03-08T00:57:21Z</dc:date>
    </item>
    <item>
      <title>Re: Batch File to Copy Sheet to another Excel File</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Batch-File-to-Copy-Sheet-to-another-Excel-File/m-p/1248960#M311085</link>
      <description>&lt;P&gt;HI&amp;nbsp;&lt;a href="https://community.alteryx.com/t5/user/viewprofilepage/user-id/311997"&gt;@flying008&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the explanation. I have created a simple workflow before finalizing to check if I can successfully run it however I've got some error. Please see below screenshots for your reference.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Destination file.PNG" style="width: 400px;"&gt;&lt;img src="https://community.alteryx.com/t5/image/serverpage/image-id/344611iD5B2286CE509D11D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Destination file.PNG" alt="Destination file.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Formula.PNG" style="width: 400px;"&gt;&lt;img src="https://community.alteryx.com/t5/image/serverpage/image-id/344612i1A9484B1696E9E41/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Formula.PNG" alt="Formula.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="bat.PNG" style="width: 400px;"&gt;&lt;img src="https://community.alteryx.com/t5/image/serverpage/image-id/344613i8C41BD2F8543E504/image-size/medium?v=v2&amp;amp;px=400" role="button" title="bat.PNG" alt="bat.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="workflow.PNG" style="width: 400px;"&gt;&lt;img src="https://community.alteryx.com/t5/image/serverpage/image-id/344614i6DBB57D988EF7A60/image-size/medium?v=v2&amp;amp;px=400" role="button" title="workflow.PNG" alt="workflow.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Error.PNG" style="width: 400px;"&gt;&lt;img src="https://community.alteryx.com/t5/image/serverpage/image-id/344615i7B2C423BC08D6140/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Error.PNG" alt="Error.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;I'm not sure why the batch file is not identifying the file to copy with. Please advise.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please let me know if you have any questions.&lt;/P&gt;&lt;P&gt;Kamen&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Mar 2024 20:51:15 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Batch-File-to-Copy-Sheet-to-another-Excel-File/m-p/1248960#M311085</guid>
      <dc:creator>KamenRider</dc:creator>
      <dc:date>2024-03-08T20:51:15Z</dc:date>
    </item>
    <item>
      <title>Re: Batch File to Copy Sheet to another Excel File</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Batch-File-to-Copy-Sheet-to-another-Excel-File/m-p/1249295#M311139</link>
      <description>&lt;P&gt;Hi, &lt;a href="https://community.alteryx.com/t5/user/viewprofilepage/user-id/258327"&gt;@KamenRider&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;FYI.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="录制_2024_03_11_09_24_57_590.gif" style="width: 724px;"&gt;&lt;img src="https://community.alteryx.com/t5/image/serverpage/image-id/344770i56CB7A39E14F5C87/image-size/large?v=v2&amp;amp;px=999" role="button" title="录制_2024_03_11_09_24_57_590.gif" alt="录制_2024_03_11_09_24_57_590.gif" /&gt;&lt;/span&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Mar 2024 01:26:11 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Batch-File-to-Copy-Sheet-to-another-Excel-File/m-p/1249295#M311139</guid>
      <dc:creator>flying008</dc:creator>
      <dc:date>2024-03-11T01:26:11Z</dc:date>
    </item>
    <item>
      <title>Re: Batch File to Copy Sheet to another Excel File</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Batch-File-to-Copy-Sheet-to-another-Excel-File/m-p/1250515#M311464</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.alteryx.com/t5/user/viewprofilepage/user-id/311997"&gt;@flying008&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Tried some testing few days ago trying to fix the error but unfortunately I can't figure out what's&amp;nbsp; the cause. My files are in a network drive, the source and destination file and I am still receiving the error so I move my files temporarily to drive C and do the testing. Below are the screenshots for your reference.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Workflow.PNG" style="width: 400px;"&gt;&lt;img src="https://community.alteryx.com/t5/image/serverpage/image-id/345268iF5E9488DC3387F79/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Workflow.PNG" alt="Workflow.PNG" /&gt;&lt;/span&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Location File.PNG" style="width: 400px;"&gt;&lt;img src="https://community.alteryx.com/t5/image/serverpage/image-id/345270i318F97BE9D3228B7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Location File.PNG" alt="Location File.PNG" /&gt;&lt;/span&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;These are the errors I've encountered.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Error.PNG" style="width: 400px;"&gt;&lt;img src="https://community.alteryx.com/t5/image/serverpage/image-id/345271i500D91023CD39B8D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Error.PNG" alt="Error.PNG" /&gt;&lt;/span&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;This one states "UNC" paths are supported and there is statement "BAT" is not recognized as an internal or external command.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Whenever I run the workflow, the bat file contents changes from &amp;gt;&amp;gt;&amp;gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Change from.PNG" style="width: 400px;"&gt;&lt;img src="https://community.alteryx.com/t5/image/serverpage/image-id/345272i8FDD707576450551/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Change from.PNG" alt="Change from.PNG" /&gt;&lt;/span&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;TO&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Changing the contents.PNG" style="width: 400px;"&gt;&lt;img src="https://community.alteryx.com/t5/image/serverpage/image-id/345273iE9DE39B3C99A3FBC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Changing the contents.PNG" alt="Changing the contents.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;and maybe because of the error, the output removes the other tabs, and resulted to containing the formatted and unformatted data.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Financial Sample File&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Tabs not exist.PNG" style="width: 400px;"&gt;&lt;img src="https://community.alteryx.com/t5/image/serverpage/image-id/345275i9808DD8D453FD4D9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Tabs not exist.PNG" alt="Tabs not exist.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;The results are below (the finance and employee tab are gone). The Controller PnL tab increments every time I run it instead of overwriting it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="resulsts01.PNG" style="width: 400px;"&gt;&lt;img src="https://community.alteryx.com/t5/image/serverpage/image-id/345276i8ED3F3E3960FC0C2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="resulsts01.PNG" alt="resulsts01.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="resulsts02.PNG" style="width: 400px;"&gt;&lt;img src="https://community.alteryx.com/t5/image/serverpage/image-id/345277iADAFD77BAD352D50/image-size/medium?v=v2&amp;amp;px=400" role="button" title="resulsts02.PNG" alt="resulsts02.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Please advise how can this be fix. I'm not sure why I am having this errors.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your continued support and assistance.&lt;/P&gt;&lt;P&gt;Kamen &lt;/P&gt;</description>
      <pubDate>Wed, 13 Mar 2024 14:54:27 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Batch-File-to-Copy-Sheet-to-another-Excel-File/m-p/1250515#M311464</guid>
      <dc:creator>KamenRider</dc:creator>
      <dc:date>2024-03-13T14:54:27Z</dc:date>
    </item>
    <item>
      <title>Re: Batch File to Copy Sheet to another Excel File</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Batch-File-to-Copy-Sheet-to-another-Excel-File/m-p/1250803#M311555</link>
      <description>&lt;P&gt;Hi, &lt;a href="https://community.alteryx.com/t5/user/viewprofilepage/user-id/258327"&gt;@KamenRider&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;Anyway, the format of bat file are not&amp;nbsp;correctly by your output. maybe your option is wrong.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;1- Please try to change your 'bat code' of [Bat] by Input tool as below [add '&amp;amp;&amp;amp;' before each line from 2th row, then you will be free.]&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;@echo off 
&amp;amp;&amp;amp; @setlocal enabledelayedexpansion 
&amp;amp;&amp;amp; @set "objFrom=D:\123\SourceFile.xlsx" 
&amp;amp;&amp;amp; @set "objTo=E:\456\DestinationFile.xlsx" 

&amp;amp;&amp;amp; @echo Copy WorkSheets From +++' %objFrom% '+++ To +++' %objTo% '+++ ... 

&amp;amp;&amp;amp; @powershell -Command "$objExcel = New-Object -ComObject Excel.Application; $objExcel.Visible = $false; $wkInput = $objExcel.Workbooks.Open('%objFrom%'); $wkOutput = $objExcel.Workbooks.Open('%objTo%'); foreach ($Sheet in $wkInput.Sheets) { if ($Sheet.Visible -eq -1) { $Sheet.Copy($wkOutput.Sheets.Item($wkOutput.Sheets.Count)); } }; $wkOutput.Save(); $wkOutput.Close(); $wkInput.Close(); $objExcel.Quit();" 

&amp;amp;&amp;amp; @taskkill /f /im excel.exe 
&amp;amp;&amp;amp; @echo *** All done ! ***&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;******&lt;/P&gt;&lt;P&gt;If above code return error, you need try this : (Join all code to one line)&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;@echo off &amp;amp;&amp;amp; @setlocal enabledelayedexpansion &amp;amp;&amp;amp; @set "objFrom=D:\123\SourceFile.xlsx" &amp;amp;&amp;amp; @set "objTo=E:\456\DestinationFile.xlsx" &amp;amp;&amp;amp; @echo Copy WorkSheets From +++' %objFrom% '+++ To +++' %objTo% '+++ ... &amp;amp;&amp;amp; @powershell -Command "$objExcel = New-Object -ComObject Excel.Application; $objExcel.Visible = $false; $wkInput = $objExcel.Workbooks.Open('%objFrom%'); $wkOutput = $objExcel.Workbooks.Open('%objTo%'); foreach ($Sheet in $wkInput.Sheets) { if ($Sheet.Visible -eq -1) { $Sheet.Copy($wkOutput.Sheets.Item($wkOutput.Sheets.Count)); } }; $wkOutput.Save(); $wkOutput.Close(); $wkInput.Close(); $objExcel.Quit();" &amp;amp;&amp;amp; @taskkill /f /im excel.exe &amp;amp;&amp;amp; @echo *** All done ! ***&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;2- Option [First Row Contains Field Names] must be unchecked. (because you don't need the filed name, and it unless in bat file.)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;3-&amp;nbsp;&amp;nbsp;Output set.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="录制_2024_03_14_12_41_00_336.gif" style="width: 625px;"&gt;&lt;img src="https://community.alteryx.com/t5/image/serverpage/image-id/345379iD525A3DF101A1670/image-size/large?v=v2&amp;amp;px=999" role="button" title="录制_2024_03_14_12_41_00_336.gif" alt="录制_2024_03_14_12_41_00_336.gif" /&gt;&lt;/span&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;4- So, Please try again, and check your bat file format after output. ( Does the path appear to have an extra slash symbol in the code you output? )&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="录制_2024_03_14_12_50_27_802.gif" style="width: 774px;"&gt;&lt;img src="https://community.alteryx.com/t5/image/serverpage/image-id/345380i23B53E976A968CFF/image-size/large?v=v2&amp;amp;px=999" role="button" title="录制_2024_03_14_12_50_27_802.gif" alt="录制_2024_03_14_12_50_27_802.gif" /&gt;&lt;/span&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;5- Wish you have a good luck !&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Mar 2024 05:20:00 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Batch-File-to-Copy-Sheet-to-another-Excel-File/m-p/1250803#M311555</guid>
      <dc:creator>flying008</dc:creator>
      <dc:date>2024-03-14T05:20:00Z</dc:date>
    </item>
    <item>
      <title>Re: Batch File to Copy Sheet to another Excel File</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Batch-File-to-Copy-Sheet-to-another-Excel-File/m-p/1251095#M311636</link>
      <description>&lt;P&gt;HI&amp;nbsp;&lt;a href="https://community.alteryx.com/t5/user/viewprofilepage/user-id/311997"&gt;@flying008&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have change the code of the text input file and for the first option, I have an error that says error code 255. For the second one where all code join in one line, below is the error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="new error01.PNG" style="width: 400px;"&gt;&lt;img src="https://community.alteryx.com/t5/image/serverpage/image-id/345481i3E91F5BAC6696C4C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="new error01.PNG" alt="new error01.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="new error02.PNG" style="width: 400px;"&gt;&lt;img src="https://community.alteryx.com/t5/image/serverpage/image-id/345482i707671EE2E5735CD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="new error02.PNG" alt="new error02.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Maybe this error is the reason why it didn't give me the correct output or results. The output I received removed the other two tabs and gave me an unformatted data of Controller tab.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For the code, below is the result after I run the workflow. There no more extra slash but the date for Financial sample is missing.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="new error03.PNG" style="width: 400px;"&gt;&lt;img src="https://community.alteryx.com/t5/image/serverpage/image-id/345484iAE7DED84787E5832/image-size/medium?v=v2&amp;amp;px=400" role="button" title="new error03.PNG" alt="new error03.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please advise.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kamen &lt;/P&gt;</description>
      <pubDate>Thu, 14 Mar 2024 19:42:05 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Batch-File-to-Copy-Sheet-to-another-Excel-File/m-p/1251095#M311636</guid>
      <dc:creator>KamenRider</dc:creator>
      <dc:date>2024-03-14T19:42:05Z</dc:date>
    </item>
    <item>
      <title>Re: Batch File to Copy Sheet to another Excel File</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Batch-File-to-Copy-Sheet-to-another-Excel-File/m-p/1251224#M311666</link>
      <description>&lt;P&gt;Hi, &lt;a href="https://community.alteryx.com/t5/user/viewprofilepage/user-id/258327"&gt;@KamenRider&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;Hello! I've seen your screenshot of the error prompt, so,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;1- allow me to make a bold guess, you actually saved the bat file in a UNC path like "\\Server\ABC\RUN\Copy.bat", and you ran it from your local computer, that's why the screenshot prompt appears.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;2- Those red error messages come from code part of PowerShell, and they are actually error because your code doesn't get to the correct folder path. I've improved the code structure, please use the code below.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;@echo off &amp;amp;&amp;amp;setlocal enabledelayedexpansion &amp;amp;&amp;amp;@echo Copy WorkSheets From ***' SourceFile.xlsx '*** To ***' DestinationFile.xlsx '*** ... &amp;amp;&amp;amp;@powershell -Command "$objExcel = New-Object -ComObject Excel.Application; $objExcel.Visible = $false; $objFrom = 'D:\123\SourceFile.xlsx'; $objTo = 'E:\456\DestinationFile.xlsx'; $wkInput = $objExcel.Workbooks.Open($objFrom); $wkOutput = $objExcel.Workbooks.Open($objTo); foreach ($Sheet in $wkInput.Sheets) { if ($Sheet.Visible -eq -1) { $Sheet.Copy($wkOutput.Sheets.Item($wkOutput.Sheets.Count)); } }; $wkOutput.Save(); $wkOutput.Close(); $wkInput.Close(); $objExcel.Quit();" &amp;amp;&amp;amp;@taskkill /f /im excel.exe &amp;amp;&amp;amp;@echo *** All done ! ***&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;3- Regarding the problem that the file name in the final output code is missing the date, please check the formula in your workflow again, it must output the correct destination path.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;4- Finally, if you can, please tell me what version of the operating system you are using? like win7 or win10 ?&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Mar 2024 03:24:09 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Batch-File-to-Copy-Sheet-to-another-Excel-File/m-p/1251224#M311666</guid>
      <dc:creator>flying008</dc:creator>
      <dc:date>2024-03-15T03:24:09Z</dc:date>
    </item>
    <item>
      <title>Re: Batch File to Copy Sheet to another Excel File</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Batch-File-to-Copy-Sheet-to-another-Excel-File/m-p/1252285#M311902</link>
      <description>&lt;P&gt;HI&amp;nbsp;&lt;a href="https://community.alteryx.com/t5/user/viewprofilepage/user-id/311997"&gt;@flying008&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Quite an improvement in your code. I was able to run your new code and the errors found are as follows:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. returned an error code: 1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Error.PNG" style="width: 560px;"&gt;&lt;img src="https://community.alteryx.com/t5/image/serverpage/image-id/345950iCCE6D268438F3A8B/image-dimensions/560x28?v=v2" width="560" height="28" role="button" title="Error.PNG" alt="Error.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;2. BAT is not recognized as an internal&amp;nbsp; or external command. Not sure if this is a valid error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="worfklow bat.PNG" style="width: 400px;"&gt;&lt;img src="https://community.alteryx.com/t5/image/serverpage/image-id/345956iB57A2AC8E50A3597/image-size/medium?v=v2&amp;amp;px=400" role="button" title="worfklow bat.PNG" alt="worfklow bat.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;3. the formatted data was successfully copied however, why is it there is an unformatted data (See below SCR2). And then the two tabs from financial sample are missing. Also, every time I rerun the workflow, the tabs added. It should be rewriting the file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="add.PNG" style="width: 400px;"&gt;&lt;img src="https://community.alteryx.com/t5/image/serverpage/image-id/345966i4435ED95ADE30EAA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="add.PNG" alt="add.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SCR2&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="unformat.PNG" style="width: 400px;"&gt;&lt;img src="https://community.alteryx.com/t5/image/serverpage/image-id/345967i0617598DFB199EE4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="unformat.PNG" alt="unformat.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Other references&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Batch File&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="batcfh file.PNG" style="width: 400px;"&gt;&lt;img src="https://community.alteryx.com/t5/image/serverpage/image-id/345959iE6EA7C70F0FDA351/image-size/medium?v=v2&amp;amp;px=400" role="button" title="batcfh file.PNG" alt="batcfh file.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="point bat.PNG" style="width: 400px;"&gt;&lt;img src="https://community.alteryx.com/t5/image/serverpage/image-id/345963iF349B1F87D978021/image-size/medium?v=v2&amp;amp;px=400" role="button" title="point bat.PNG" alt="point bat.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Thanks and hope to hear for your answers. Looking forward for your continued assistance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kamen&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Mar 2024 17:33:10 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Batch-File-to-Copy-Sheet-to-another-Excel-File/m-p/1252285#M311902</guid>
      <dc:creator>KamenRider</dc:creator>
      <dc:date>2024-03-18T17:33:10Z</dc:date>
    </item>
  </channel>
</rss>

