I need Excel VBA code to open workbooks that are in a SharePoint location

Anonymous
2024-01-19T13:36:06+00:00

I need Excel VBA code to open workbooks that are in a SharePoint location...

I am comfortable with Workbooks.Open and using an old 'mapped' address such as T:\documents\TestFile.xlsx

How can I work out the SharePoint address of a file in a format that I will be able to use in VBAcode?

Thank you

Microsoft 365 and Office | Excel | For business | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments
{count} votes

4 answers

Sort by: Most helpful
  1. Anonymous
    2024-01-19T18:21:55+00:00

    Dear mjxhx,

    Good day!

    Thank you for posting to Microsoft Community. We are glad to assist. We are looking into your situation, and we will update the thread shortly.

    Appreciate your patience and understanding and thank for your time and cooperation.

    Sincerely,

    Waqas Muhammad

    0 comments No comments
  2. Anonymous
    2024-01-20T07:26:36+00:00
    6 people found this answer helpful.
    0 comments No comments
  3. Anonymous
    2024-01-20T10:40:54+00:00

    Thanks - that's reassuring, but I'm not yet a SharePoint user... where do I find that SharePoint address...

    "https://domain.sharepoint.com/sites/Folder/Shared%20Documents/Test/Test.xlsx"

    is it in the SaveAs dialog? or in the title-bar of the Application? or is there somewhere else I can read or copy it?

    Thanks

    2 people found this answer helpful.
    0 comments No comments
  4. Anonymous
    2024-01-20T13:19:44+00:00

    On Sharepoint>Open details>Then you can find the path of that file and copy it.

    12 people found this answer helpful.
    0 comments No comments