question

Bob G avatar image
0 Likes"
Bob G asked Kavika F answered

Reading/writing to an open Excel workbook

I want to read and write to an Excel workbook during a simulation run.

It seems the Excel file has to be closed for the excelopen command to work. Is this correct?

Is there a way to establish an Excel interface to an Excel file that is already open?

Thank you.

FlexSim 23.2.2
excel interface
5 |100000

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

1 Answer

·
Kavika F avatar image
0 Likes"
Kavika F answered

Hey @Bob G, you can check out this answer I gave to someone with a similar question trying to close Excel before reading/writing to it. In a comment, I mention that

Excel blocks write access from external programs to files currently open in Excel to protect data integrity of that file.

5 |100000

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

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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