Maximum length of filenames

Posted on 2007-08-02
Last Modified: 2012-08-14

I need to have an answer on the questions below with regard to MS Office files (Word, Excel and Powerpoint). There seems to be a difference based on the application.

What is the maximum of the length of the filename itself?
What is the maximum of the length of the path itself?
What is the maximum length of the total filename including the path?

Question by:Delphiwizard
    LVL 81

    Accepted Solution

    Excel cannot open a file that is located such that the entire path length including the file name is greater than 218 characters. When attempting to do so Excel displays the error:

       "full\path\to\file.xls" could not be found. Check the spelling of the file name, and verify that the file location is correct.

    This error will occur regardless of how Excel is instructed to open the file. There is no known workaround other than to change the location of the file or shorten the folder names in the path.

    As far as the file name I believe it falls under the same rule.

    LVL 13

    Assisted Solution

    LVL 13

    Assisted Solution


    Author Comment

    Thank you for the support.

    Featured Post

    Maximize Your Threat Intelligence Reporting

    Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

    Join & Write a Comment

    A few years ago I was very much a beginner at VBA, and that very much remains the case today.  I'll do my best to explain things as I go in the hope that other beginners can follow.  If you just want to check out a tool that creates a Select Case fu…
    Using Word 2013, I was experiencing some incredible lag when typing.  Here's what worked for me....
    This Micro Tutorial well show you how to find and replace special characters in Microsoft Word. This is similar to carriage returns to convert columns of values from Microsoft Excel into comma separated lists.
    Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

    734 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    23 Experts available now in Live!

    Get 1:1 Help Now