Writting to .xlsx files

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • wolfjmt
    New Member
    • Jan 2009
    • 10

    Writting to .xlsx files

    Hi, I am trying to write to data to a .xlsx file. I can currently write the data to a .xls file. I tried to change the extension of the xls file (to xlsx) but Excel gave the following error:Excel cannot open the file 'Filename.xlsx' because the file format or file extent ion is not valid. Verify that the file has not been corrupted and that the file extension matches the format of the file.
    I know Excel can open the xls file but I would like to save the data to a xlsx file.
    Any advice would be greatly appreciated
    Thanks
  • Stang02GT
    Recognized Expert Top Contributor
    • Jun 2007
    • 1206

    #2
    trying taking the x off the end of the file name. I believe that Excel uses xls not xlsx.


    Moving to Misc as the software dev forum is not a place for this type of question.

    Comment

    • DonRayner
      Recognized Expert Contributor
      • Sep 2008
      • 489

      #3
      xlsx is a excel 2007 extension where xls is pre 2007 excel extension. You can get drivers from Micro$oft to open the xlsx extension with previous versions of excel but I don't believe that you will be able to save in that format.

      Try doing a google search for converting xls to xlsx and you will probally find some online conversion tools.

      Comment

      • Stang02GT
        Recognized Expert Top Contributor
        • Jun 2007
        • 1206

        #4
        Learn something new everday. I really haven't used or know much about the new office suite. My work still uses previous versions.

        Comment

        • RedSon
          Recognized Expert Expert
          • Jan 2007
          • 4980

          #5
          Just for the record, modifying the extension of the file does not change what type of file you have. If I write a book called MyStory.txt and I want to compress it and email it to my friend I don't change the filename to MyStory.zip and send it away. All you are doing is renaming the file.

          Comment

          • wolfjmt
            New Member
            • Jan 2009
            • 10

            #6
            Thanks for your input guys

            Comment

            Working...