Welcome, there are some issues with your post:
"after the script is done working and I open the Excel file and try to re-run the script its give me an error message and just after I close the file its working."
You don't show us the script, you don't tell us what the error is. It could be that you're getting an error from your perl script because it's trying to write to a file which is in use by Excel, which may explain why it works when you close the file. If this is not the case please read and understand PerlMonks for the Absolute Beginner along with How do I post a question effectively? and give us more details. If I am missing something obvious let me know.
In reply to Re: writing to an open Excel file
by marto
in thread writing to an open Excel file
by bts974
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |