+ Reply to Thread
Results 1 to 4 of 4

Excel Document Library:When I customize the filename, I lose the path to the server

  1. #1
    Registered User
    Join Date
    04-27-2011
    Location
    New York, NY
    MS-Off Ver
    Excel 2007
    Posts
    3

    Excel Document Library:When I customize the filename, I lose the path to the server

    have VB that customizes the file name in Excel when saving.

    However when I add this code, it wants to save the file to my local machine = I lose the sharepoint path/url to the doc library.

    How can I populate this dynamically? (I don't want to hard code the path)

    How can I get the URL/path?

    Please Login or Register  to view this content.

  2. #2
    Forum Contributor
    Join Date
    07-07-2005
    Location
    England
    MS-Off Ver
    Office 2019 Enterprise
    Posts
    473

    Re: Excel Document Library:When I customize the filename, I lose the path to the serv

    how is the code supposed to know where you want it saving if you don't hard code it?

    Do you already have an existing file that you are overwriting? In that case you could grab the path of the existing file before you overwrite it perhaps?

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    04-27-2011
    Location
    New York, NY
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Excel Document Library:When I customize the filename, I lose the path to the serv

    Because if I remove the code for my custom filename, it the excel document will be saved to the proper location, in the SharePoint document library.

  4. #4
    Forum Contributor
    Join Date
    07-07-2005
    Location
    England
    MS-Off Ver
    Office 2019 Enterprise
    Posts
    473

    Re: Excel Document Library:When I customize the filename, I lose the path to the serv

    so do you have a file that you are overwriting? and if so, does the code I have posted work?

+ 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