Out put in Single Excel File

zaska

Well-known Member
Joined
Oct 24, 2010
Messages
1,046
Hi all.

I have a Jscript which exports the data to a .Csv file....When i run the code for the second time the contents of the first .Csv were getting overwritten.

Code:
ExportFileName = "Report.csv"; 

{SB.Export( ExportFile );

Is it possible to export the data to separate Sheets in the same workbook.

Thank u
 

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
Hi

csv files are flat text files - they don't have multiple sheets eg like an Excel workbook would. You could perhaps append the data to the end of the existing file? I am afraid I know zip about jscript though so you would be best off asking on a Jscript forum if you get no other answers here.
 
Upvote 0
Hi,

Thank you for the Reply.

I understood now...But how do i modify or append the data to Each sheet in a single excel file in the above code.

I tried modifying the .Csv Extension to .Xls but the result is same except that i didn't get comma separated values..

I want to modify the code to get the results in a single Excel file.( Sheet1, Sheet2 , Sheet3 etc.,)

Is it possible with .xls? and how do i append the d

Thank u
 
Upvote 0

Forum statistics

Threads
1,224,551
Messages
6,179,480
Members
452,915
Latest member
hannnahheileen

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top