+ Reply to Thread
Results 1 to 6 of 6

How to get the "local path" of excel file in sharepoint

  1. #1
    Registered User
    Join Date
    03-22-2020
    Location
    Colombia
    MS-Off Ver
    Office 365
    Posts
    18

    Question How to get the "local path" of excel file in sharepoint

    Hi guys, I have a workbook in the sharepoint with the corp account, this file is synchronized with my PC, so the file has two paths, the local path (C:/users/files/sample.xlsm) and the web path (corp.sharepoint.com/sites/files/sample.xlsm).

    If I used this sentence in vba "ThisWorkbook.Path" it gets the web path. Do you know any form to get the local path?, I need it

    thanks for all!

  2. #2
    Forum Expert
    Join Date
    05-29-2020
    Location
    NH USA
    MS-Off Ver
    365
    Posts
    2,103

    Re: How to get the "local path" of excel file in sharepoint

    try

    =CELL("filename")

  3. #3
    Registered User
    Join Date
    03-22-2020
    Location
    Colombia
    MS-Off Ver
    Office 365
    Posts
    18

    Re: How to get the "local path" of excel file in sharepoint

    I'm sorry It doesn't work :/ it gets the same path

  4. #4
    Forum Expert
    Join Date
    05-29-2020
    Location
    NH USA
    MS-Off Ver
    365
    Posts
    2,103

    Re: How to get the "local path" of excel file in sharepoint

    Have you been able to try to search your c drive for the file name?

  5. #5
    Registered User
    Join Date
    03-22-2020
    Location
    Colombia
    MS-Off Ver
    Office 365
    Posts
    18

    Re: How to get the "local path" of excel file in sharepoint

    I know where is the file in my pc, but I have a macro that copy any file in the same directory of the workbook, but now, that the file is in cloud, the macro doesn't work because it try to copy the files at the web path, and I want to copy those files in the local path for upload the info to sharepoint without going directly to the web. I know that I can drag the files to the folder and done but the macro help me a little more.
    I can't put a fixed name of the path because I have to share the files with other people and when they sinchronized the sharepoint the local path is going to change.
    Am I getting complicated with it?

  6. #6
    Forum Expert
    Join Date
    11-24-2013
    Location
    Paris, France
    MS-Off Ver
    Excel 2003 / 2010
    Posts
    9,831

    Arrow Re: How to get the "local path" of excel file in sharepoint


    Hi,

    if you find nothing in the VBA help of Workbook object properties - check it - then obviously
    Excel knows only the path of the opened workbook so the answer seems not to be on Excel side …

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. How to make commandbutton to open another workbook "with file path change"
    By Rachel8226 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-06-2019, 09:26 AM
  2. How to select "yes" when prompted to check in sharepoint file using VBA
    By Spartangirl in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-19-2015, 12:32 PM
  3. Replies: 1
    Last Post: 10-24-2014, 12:32 AM
  4. Opening SharePoint file with VBA - disable SharePoint "Contacting the server" message
    By kopite2002 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-22-2013, 01:56 AM
  5. Set Variable = File Path generates "Object Required" Error
    By Brian48072 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-30-2013, 11:42 AM
  6. Replies: 1
    Last Post: 05-23-2013, 02:04 PM
  7. [SOLVED] File path hyperlink in email, how to replace spaces w/ "%20"?
    By Rerock in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 09-02-2012, 06:09 PM

Tags for this Thread

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