question

Lambert avatar image
0 Likes"
Lambert asked Lambert commented

Clear excel before export

Hi, when I use the export interface to export a global table, it is not clearing previous contents from the excel file.

Therefore if I export 3 rows but previously there were 5, I still see two olds from the previous export.

What's the best way to clear the excel file before the export?

thank you


1680612957964.png

FlexSim 23.0.6
excel export
1680612957964.png (45.2 KiB)
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Kavika F avatar image
0 Likes"
Kavika F answered Lambert commented

Hey @Lambert, in the Excel Interface > Custom tab, you can write custom code for importing/exporting.

1680624086744.png

You can write a small script that deletes the sheet using exceldeletesheet, and when you go to Export, it will recreate the sheet. You could also try another excel command; exceldeleterange - deletes a range from the currently open excel workbook.


1680624086744.png (12.9 KiB)
· 11
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Joerg Vogel avatar image
0 Likes"
Joerg Vogel answered Lambert commented

And if you enlarge your table you import into your excel sheet to contain more rows? You can resize a FlexSim table easily.

· 2
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.