Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re^7: Problem using SaveAs when trying to change Excel format

by Ratazong (Monsignor)
on Jul 09, 2014 at 12:54 UTC ( [id://1092897]=note: print w/replies, xml ) Need Help??


in reply to Re^6: Problem using SaveAs when trying to change Excel format
in thread Problem using SaveAs when trying to change Excel format

$Book->SaveAs($file_name);

works for me, unless the file $file_name is already existing. I usually solve that problem by trying to delete the file before overwriting it.

If SaveAs() is still not working, verify the path (and try both, slashes and backslashes - excel seems to be a bit picky about them)

HTH, Rata

Replies are listed 'Best First'.
Re^8: Problem using SaveAs when trying to change Excel format
by Anonymous Monk on Jul 09, 2014 at 13:07 UTC

    Hi Rata, I'm very thankful for your help ( :) ) but I want to edit the $file_name and want to save the changes in the same file.

      To edit a file, use $book->Save(); instead of $book->SaveAs($filename);

      HTH, Rata

      Also slashes and backslashes, both are not working in my case.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1092897]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (6)
As of 2024-04-23 15:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found