+ Reply to Thread
Results 1 to 4 of 4

Error:Invalid File format,while opening an Excel Template file

  1. #1
    Saurabh
    Guest

    Error:Invalid File format,while opening an Excel Template file

    Hi,
    I'm having a .xls file which through code is creating daily report
    files.These daily report files are being saved as .xlt files(excel templates).
    All these days I was able to open and view the saved .xlt report files but
    very recently while opening saved .xlt files I'm getting an error which says
    "File Name:Invalid File format"

    Can someone help me with the resons behind such error also I'd be thankfull
    if someone can suggest me the solution for the same.

    Expecting an early response

    Saurabh


  2. #2
    Patrick Molloy
    Guest

    RE: Error:Invalid File format,while opening an Excel Template file

    The files should be saved as XLS not XLT.

    "Saurabh" wrote:

    > Hi,
    > I'm having a .xls file which through code is creating daily report
    > files.These daily report files are being saved as .xlt files(excel templates).
    > All these days I was able to open and view the saved .xlt report files but
    > very recently while opening saved .xlt files I'm getting an error which says
    > "File Name:Invalid File format"
    >
    > Can someone help me with the resons behind such error also I'd be thankfull
    > if someone can suggest me the solution for the same.
    >
    > Expecting an early response
    >
    > Saurabh
    >


  3. #3
    Registered User
    Join Date
    04-09-2012
    Location
    New Jersey
    MS-Off Ver
    Excel 2010
    Posts
    66

    Re: Error:Invalid File format,while opening an Excel Template file

    I believe as the error statement correctly suggests the error is being caused due to invalid extension. Don?t worry there are several workarounds to this, I am sharing them below:

    Method 1 ? Change the Default File Format to Save Excel Workbooks

    In Excel 2007, click the ?Microsoft Office? button and then ?Excel Options?. In Excel 2010 and higher versions, click File > Options.

    Select Export option.

    Select Change File Type option.

    Change the file extension, and then click Save As.


    Method 2 ? Recover Unsaved Workbook

    Go to File and select Info option.

    Under Manage Versions, select ?Recover Unsaved Workbooks? op

    If MS Excel has unsaved files then, it will list them. You can open and save it.


    Method 3 ? Use 'Open and Repair' Feature of MS Excel

    Open MS Excel application.

    Go to File and Select Open option.

    Select the corrupt file and choose Open and Repair option.

    You can also check this forum:

    https://social.technet.microsoft.com...ffice2016ITPro

    Thanks!

  4. #4
    Forum Contributor
    Join Date
    10-02-2012
    Location
    UK
    MS-Off Ver
    Office 365
    Posts
    293

    Re: Error:Invalid File format,while opening an Excel Template file

    Why are you replying to a 17 year old thread?

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1