Closed Thread
Results 1 to 3 of 3

Maximum length of File plus path name for excel workbooks

  1. #1
    Hari Prasadh
    Guest

    Maximum length of File plus path name for excel workbooks

    Hi,

    I will be programmatically opening / creating some Workbooks ,
    renaming/giving names to them.

    Considering that many of my Working folders / files are nested quite deep
    and many times I come across problems (self-created!!).

    1. A file + path name of 211 (up to and including 218) characters opens
    just fine.

    2. If I try rename the file in point 1. to a file + path name of 219
    characters (which already exists on my computer - am overwriting on it) I
    get the following message.

    "The file could not be accessed. try one of the following:

    Make sure the specified folder exists.
    Make sure that the folder that contains the file is not read-only.
    Make sure the file name does not contain any of the following characters: <
    > ? [ ] : | or *

    Make sure the file/path name doesnt contain more than 218 characters."

    3. The below happens when I open a file + path name of 219 characters.

    "'......\....\...long file name.xls' could not be found. check the spelling
    of the file name, and verify that the file location is correct.

    If you are trying to open the file from your list of most recently used
    files on the menu, make sure that the file has not been renamed, moved or
    deleted."

    4. The below happens when I open a file/path Name with 256, 257 or more
    characters (named manually).

    "A DDE error has occurred, and a description of the error cannot be
    displayed because it is too long. if the filename or path is too long, try
    renaming the file or copying it to a different folder."

    5. If am naming a file, I see that the maximum I can stretch to is up to 259
    characters.

    Please tell me as to whether there is any other constraints i should keep in
    mind while programmatically working on long files (other than the 218
    character limit).

    Also, I would like to know whether there are any individual limits on file
    name or path name.

    Thanks a lot,
    Hari
    India



  2. #2
    Registered User
    Join Date
    09-02-2014
    Location
    india
    MS-Off Ver
    2007
    Posts
    2

    Re: Maximum length of File plus path name for excel workbooks

    Hello
    long path tool can be used to solve your problem

    ------------------------------

  3. #3
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Maximum length of File plus path name for excel workbooks

    This is a 9 years old thread.

    I don't think that anyone follow it.
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

Closed 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