+ Reply to Thread
Results 1 to 3 of 3

'ActiveWorkbook.SaveAs Filename'

  1. #1
    TOMB
    Guest

    'ActiveWorkbook.SaveAs Filename'

    Is there a maximum number of charactors that VBA will recognize for
    'ActiveWorkbook.SaveAs Filename'?

    I have code which used to update several (excel) files then save them to a
    network file server. We have recently been required to migrate to a new
    network directory/folder structure which contains 160 plus charactor naming
    convention. I have made the appropriate changes to point to the new location,
    but now I get an error which shuts down Excel.

    Could the length of the file server/folder name be too long for Excel/VBA to
    recognize?

    Thanks for any insights

    - -TB- -


  2. #2
    Tom Ogilvy
    Guest

    Re: 'ActiveWorkbook.SaveAs Filename'

    Path length File

    I think the limit is 255 or perhaps less. Apparently less based on the
    following

    http://support.microsoft.com/default...b;en-us;131464
    "Filename Is Not Valid" Error Saving or Opening File
    --
    Regards,
    Tom Ogilvy


    "TOMB" <[email protected]> wrote in message
    news:[email protected]...
    > Is there a maximum number of charactors that VBA will recognize for
    > 'ActiveWorkbook.SaveAs Filename'?
    >
    > I have code which used to update several (excel) files then save them to a
    > network file server. We have recently been required to migrate to a new
    > network directory/folder structure which contains 160 plus charactor

    naming
    > convention. I have made the appropriate changes to point to the new

    location,
    > but now I get an error which shuts down Excel.
    >
    > Could the length of the file server/folder name be too long for Excel/VBA

    to
    > recognize?
    >
    > Thanks for any insights
    >
    > - -TB- -
    >




  3. #3
    TOMB
    Guest

    Re: 'ActiveWorkbook.SaveAs Filename'

    Tom,
    Thanks for the help.

    "Tom Ogilvy" wrote:

    > Path length File
    >
    > I think the limit is 255 or perhaps less. Apparently less based on the
    > following
    >
    > http://support.microsoft.com/default...b;en-us;131464
    > "Filename Is Not Valid" Error Saving or Opening File
    > --
    > Regards,
    > Tom Ogilvy
    >
    >
    > "TOMB" <[email protected]> wrote in message
    > news:[email protected]...
    > > Is there a maximum number of charactors that VBA will recognize for
    > > 'ActiveWorkbook.SaveAs Filename'?
    > >
    > > I have code which used to update several (excel) files then save them to a
    > > network file server. We have recently been required to migrate to a new
    > > network directory/folder structure which contains 160 plus charactor

    > naming
    > > convention. I have made the appropriate changes to point to the new

    > location,
    > > but now I get an error which shuts down Excel.
    > >
    > > Could the length of the file server/folder name be too long for Excel/VBA

    > to
    > > recognize?
    > >
    > > Thanks for any insights
    > >
    > > - -TB- -
    > >

    >
    >
    >


+ 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