<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"><channel><category>pcsoft.us.windev</category><copyright>Copyright 2026, PC SOFT</copyright><lastBuildDate>8 Mar 2016 05:48:02 Z</lastBuildDate><pubDate>2 Mar 2016 11:27:59 Z</pubDate><description>Hello,&#13;
&#13;
We have a requirement where we are using TabletoExcel function to export the data in excel.&#13;
But it gets exported only on first worksheet.&#13;
So what we have to do if we want the data to be exported in multiple worksheets of a excel.&#13;
&#13;
&#13;
For example : &#13;
&#13;
We are using the following code which creates multiple worksheet with data exported in the 1st worksheet (Budget Description) . So if we want to export data in 2nd worksheet (Currency)also then how we will do in Windev :&#13;
&#13;
sFilename is string="BUDGET_"+gsUsername+"_"+ DateToString(DateSys(),"YYYYMMDD") +"_"+ TimeToString(TimeSys(),"HHMMSS")+".xls"&#13;
sFilename = CompleteDir(fExeDir()) + sFilename&#13;
TableToExcel(TABLE_Budget_Directory_Excel, sFilename)&#13;
&#13;
fCreate(CompleteDir(fExeDir()) + sFilename)&#13;
&#13;
&#13;
MyXLSDocument is xlsDocument&#13;
MyXLSDocument = xlsOpen(sFilename, xlsWrite)&#13;
MyXLSDocument..WorksheetName="Budget Description"&#13;
IF xlsNbWorksheet(MyXLSDocument) = 1 THEN&#13;
	xlsAddWorksheet(MyXLSDocument, "Currency")&#13;
	xlsAddWorksheet(MyXLSDocument, "Simulation Base")&#13;
	xlsAddWorksheet(MyXLSDocument, "Export to PIMS")&#13;
END&#13;
xlsSave(MyXLSDocument)&#13;
xlsClose(MyXLSDocument)&#13;
&#13;
&#13;
Thanks,&#13;
Nishit.</description><ttl>30</ttl><generator>WEBDEV</generator><language>en_US</language><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/56662-add-data-second-worksheet-and-third-worksheet-when/read.awp</link><title>Add data in the second worksheet and third worksheet when we do table to excel function</title><managingEditor>moderateur@pcsoft.fr (El moderador)</managingEditor><webMaster>webmaster@pcsoft.fr (El webmaster)</webMaster><item><author>nishit_devani</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/56662-add-data-second-worksheet-and-third-worksheet-when-56739/read.awp</comments><pubDate>8 Mar 2016 05:48:02 Z</pubDate><description>Hello ,&#13;
&#13;
Thank you all for the feedback and suggestions.&#13;
&#13;
I have managed to protect the excel file on export using the follo…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/56662-add-data-second-worksheet-and-third-worksheet-when-56739/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/56662-add-data-second-worksheet-and-third-worksheet-when-56739/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/56662-add-data-second-worksheet-and-third-worksheet-when/read.awp">Add data in the second worksheet and third worksheet when we do table to excel function</source><title>Re: Add data in the second worksheet and third worksheet when we do table to excel function</title></item><item><author>Sebastian Arnold</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/56662-add-data-second-worksheet-and-third-worksheet-when-56687/read.awp</comments><pubDate>3 Mar 2016 12:56:09 Z</pubDate><description>Nishit,&#13;
&#13;
I'm not shure what your question is. But you can write to different worksheets in your Excel file like this:&#13;
&#13;
[code…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/56662-add-data-second-worksheet-and-third-worksheet-when-56687/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/56662-add-data-second-worksheet-and-third-worksheet-when-56687/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/56662-add-data-second-worksheet-and-third-worksheet-when/read.awp">Add data in the second worksheet and third worksheet when we do table to excel function</source><title>Re: Add data in the second worksheet and third worksheet when we do table to excel function</title></item><item><author>fromweb</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/56662-add-data-second-worksheet-and-third-worksheet-when-56683/read.awp</comments><pubDate>3 Mar 2016 10:55:17 Z</pubDate><description>Hi&#13;
&#13;
You can use all the methods available in excel VBA.&#13;
I have no idea if protect is one of them, as this is a VBA question, …</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/56662-add-data-second-worksheet-and-third-worksheet-when-56683/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/56662-add-data-second-worksheet-and-third-worksheet-when-56683/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/56662-add-data-second-worksheet-and-third-worksheet-when/read.awp">Add data in the second worksheet and third worksheet when we do table to excel function</source><title>Re: Add data in the second worksheet and third worksheet when we dotable to excel function</title></item><item><author>nishit_devani</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/56662-add-data-second-worksheet-and-third-worksheet-when-56678/read.awp</comments><pubDate>3 Mar 2016 08:49:09 Z</pubDate><description>Thanks for the reply.&#13;
&#13;
One more thing when I try protect the excel sheets using the code:&#13;
&#13;
excel&gt;&gt;Activeworksheet&gt;&gt;"1"&gt;&gt;Prot…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/56662-add-data-second-worksheet-and-third-worksheet-when-56678/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/56662-add-data-second-worksheet-and-third-worksheet-when-56678/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/56662-add-data-second-worksheet-and-third-worksheet-when/read.awp">Add data in the second worksheet and third worksheet when we do table to excel function</source><title>Re: Add data in the second worksheet and third worksheet when we do table to excel function</title></item><item><author>fromweb</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/56662-add-data-second-worksheet-and-third-worksheet-when-56666/read.awp</comments><pubDate>2 Mar 2016 12:50:33 Z</pubDate><description>HI&#13;
&#13;
AFAIK, you'll need to use OLE automation to do that&#13;
&#13;
Best regards&#13;
&#13;
-- &#13;
Fabrice Harari&#13;
International WinDev, WebDev a…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/56662-add-data-second-worksheet-and-third-worksheet-when-56666/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/56662-add-data-second-worksheet-and-third-worksheet-when-56666/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/56662-add-data-second-worksheet-and-third-worksheet-when/read.awp">Add data in the second worksheet and third worksheet when we do table to excel function</source><title>Re: Add data in the second worksheet and third worksheet when we dotable to excel function</title></item></channel></rss>
