+ Reply to Thread
Results 1 to 4 of 4

Get Sheet name, when file is stored on SharePoint/OneDrive

  1. #1
    Forum Contributor
    Join Date
    05-28-2020
    Location
    Poland
    MS-Off Ver
    O365,
    Posts
    120

    Get Sheet name, when file is stored on SharePoint/OneDrive

    Good morning,

    Googling for a solution, how to copy the sheet name to a cell, I found a solution with the following simple formula:


    =MID(CELL("filename";A1);FIND("]";CELL("filename";A1))+1;255)


    This formula works as long as the excel file is stored locally on your computer. For testing purposes, I stored a test excel under C:\temp\test.xlsx
    and it worked like a charm.

    If I use this formula in a Sheet, where the file is stored on SharePoint, it no longer works and I get a value error.

    Is there a way, where I can fix the issue? I tried to replace the filename with the path but I am getting the same error.

    Maybe you have a better way or a fix for this?


    Thanx a lot,

    Mike

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,460

    Re: Get Sheet name, when file is stored on SharePoint/OneDrive

    Have a look at the post third from the bottom here: https://techcommunity.microsoft.com/...la/m-p/1681449
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Contributor
    Join Date
    05-28-2020
    Location
    Poland
    MS-Off Ver
    O365,
    Posts
    120

    Re: Get Sheet name, when file is stored on SharePoint/OneDrive

    Thank you so much

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,460

    Re: Get Sheet name, when file is stored on SharePoint/OneDrive

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

    Also, if you have not already done so, you may not be aware that you can thank those who have helped you by clicking the small star icon (* Add Reputation) located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of all those who offered help.

+ 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. Check if a file exists in onedrive/sharepoint
    By S@S in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-15-2022, 08:15 AM
  2. Replies: 0
    Last Post: 12-21-2021, 07:25 AM
  3. One week data is missing from excel file stored in onedrive
    By md.ha.um.yu in forum Excel General
    Replies: 0
    Last Post: 11-14-2021, 08:59 PM
  4. [SOLVED] VBA: Show pop-up when Excel file is opened in browser (e.g. SharePoint / OneDrive)
    By kingofcamden in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-01-2021, 08:43 AM
  5. VBA Code for File Location on OneDrive/SharePoint
    By Vinod Krishna.C in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-05-2021, 12:50 PM
  6. Share an excel file on onedrive/sharepoint with vba
    By ARowbot in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 08-05-2020, 08:29 PM
  7. Excel -- Prevent users from Locking file stored on OneDrive
    By Vinod Krishna.C in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-25-2018, 04:27 AM

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