<?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 Overwrite Excel Sheet in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Overwrite-Excel-Sheet/m-p/57144#M32060</link>
    <description>&lt;P&gt;I can create new sheets in a&amp;nbsp;Excel&amp;nbsp;file&amp;nbsp;using "Create Excel Workbook" without any issue only&amp;nbsp;if the sheets do not exist in the excel file.&lt;/P&gt;&lt;P&gt;The problem come when the sheets already exist in the excel&amp;nbsp;file and I try to overwrite them.&lt;/P&gt;&lt;P&gt;There are some cells that remains with the old data, and I do not want them!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to have a full overwite of the sheets usign "Create Excel Workbook"&amp;nbsp;?&lt;/P&gt;&lt;P&gt;Is there a way to delete a single sheet in an Excel file?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Fabrizio&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 17 May 2018 15:52:49 GMT</pubDate>
    <dc:creator>Fabrizio_Ruo</dc:creator>
    <dc:date>2018-05-17T15:52:49Z</dc:date>
    <item>
      <title>Overwrite Excel Sheet</title>
      <link>https://community.jmp.com/t5/Discussions/Overwrite-Excel-Sheet/m-p/57144#M32060</link>
      <description>&lt;P&gt;I can create new sheets in a&amp;nbsp;Excel&amp;nbsp;file&amp;nbsp;using "Create Excel Workbook" without any issue only&amp;nbsp;if the sheets do not exist in the excel file.&lt;/P&gt;&lt;P&gt;The problem come when the sheets already exist in the excel&amp;nbsp;file and I try to overwrite them.&lt;/P&gt;&lt;P&gt;There are some cells that remains with the old data, and I do not want them!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to have a full overwite of the sheets usign "Create Excel Workbook"&amp;nbsp;?&lt;/P&gt;&lt;P&gt;Is there a way to delete a single sheet in an Excel file?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Fabrizio&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 17 May 2018 15:52:49 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Overwrite-Excel-Sheet/m-p/57144#M32060</guid>
      <dc:creator>Fabrizio_Ruo</dc:creator>
      <dc:date>2018-05-17T15:52:49Z</dc:date>
    </item>
    <item>
      <title>Re: Overwrite Excel Sheet</title>
      <link>https://community.jmp.com/t5/Discussions/Overwrite-Excel-Sheet/m-p/57162#M32071</link>
      <description>&lt;P&gt;Hi Fabrizio,&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Create Excel Workbook tries to do a replacement if the file already exists and the worksheet names match existing worksheet names.&amp;nbsp; If that is not the case, it creates new sheets.&amp;nbsp; Unfortunately, there is no way to override the behavior other than to provide different sheet names or a different file name prior to the save.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Brian Corcoran&lt;/P&gt;
&lt;P&gt;JMP Development&lt;/P&gt;</description>
      <pubDate>Thu, 17 May 2018 20:39:22 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Overwrite-Excel-Sheet/m-p/57162#M32071</guid>
      <dc:creator>briancorcoran</dc:creator>
      <dc:date>2018-05-17T20:39:22Z</dc:date>
    </item>
    <item>
      <title>Re: Overwrite Excel Sheet</title>
      <link>https://community.jmp.com/t5/Discussions/Overwrite-Excel-Sheet/m-p/57174#M32079</link>
      <description>&lt;P&gt;Hi Brian,&lt;/P&gt;&lt;P&gt;is there a way to delete a single sheet from an Excel file?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Fabrizio&lt;/P&gt;</description>
      <pubDate>Fri, 18 May 2018 05:59:20 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Overwrite-Excel-Sheet/m-p/57174#M32079</guid>
      <dc:creator>Fabrizio_Ruo</dc:creator>
      <dc:date>2018-05-18T05:59:20Z</dc:date>
    </item>
    <item>
      <title>Re: Overwrite Excel Sheet</title>
      <link>https://community.jmp.com/t5/Discussions/Overwrite-Excel-Sheet/m-p/57211#M32089</link>
      <description>&lt;P&gt;Hi Fabrizio,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sorry, no, there are no circumstances where we delete sheets from an existing workbook.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Brian&lt;/P&gt;</description>
      <pubDate>Fri, 18 May 2018 12:07:55 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Overwrite-Excel-Sheet/m-p/57211#M32089</guid>
      <dc:creator>briancorcoran</dc:creator>
      <dc:date>2018-05-18T12:07:55Z</dc:date>
    </item>
    <item>
      <title>Re: Overwrite Excel Sheet</title>
      <link>https://community.jmp.com/t5/Discussions/Overwrite-Excel-Sheet/m-p/393266#M64362</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;//I hope this will help you, this will delete your workbook
excel_path = "$Desktop\test.xlsx"
save text file(delSheetpath = "$Desktop\deleteExcelSheet.vbs",

"\[
Set objFSO = CreateObject("Scripting.FileSystemObject")
Dim oExcel
Set oExcel = CreateObject("Excel.Application")

Dim oBook
Set oBook = oExcel.Workbooks.Open("]\"||excel_path||"\[")

oExcel.DisplayAlerts = False
oExcel.ScreenUpdating = False

oBook.sheets("]\"||sheet_name||"\[").Delete

oBook.save
oBook.close

oExcel.DisplayAlerts = True
oExcel.ScreenUpdating = True

oExcel.Quit

]\"
);

open(delSheetpath);

&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 15 Jun 2021 08:51:46 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Overwrite-Excel-Sheet/m-p/393266#M64362</guid>
      <dc:creator>jimmsky</dc:creator>
      <dc:date>2021-06-15T08:51:46Z</dc:date>
    </item>
  </channel>
</rss>

