I am having trouble closing one particular spreadsheet.
I am using
$close_res = $workbook->Close(); print "[open_spreadsheet] 1st close result <$close_res>\n"; $close_res = $workbook->Close(); print "[open_spreadsheet] 2nd close result <$close_res>\n";


and the messages I get from this are
open_spreadsheet 1st close result <1>
open_spreadsheet 2nd close result <>
The second close was added because of the problem.
However, when I try and move the spreadsheet I get the following

result of moving file is <0>
could not find move file error - number <32> message <The process cannot access
the file because it is being used by another process.

Also I cannot open and file the spreadsheet using Excel until I close the application
that has used this spreadsheet.
I have not had this trouble with other spreadsheets
The original spreadsheet was written by someone else.
Therefore in an attempt to overcome this I copied the cells from the original
to a new spreadsheet.
However, I still got the same problem.
Has any one any idea how to solve this one?

In reply to Closing Spreasheet Problem by merrymonk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.