+ Reply to Thread
Results 1 to 6 of 6

To open an Excel file from sharepoint folder using VBA

  1. #1
    Registered User
    Join Date
    06-06-2017
    Location
    GERMANY
    MS-Off Ver
    EXCEL 2013
    Posts
    32

    To open an Excel file from sharepoint folder using VBA

    HI,


    I have my Excel file stored in the SharePoint and would like to have an vba to Access that Excel file.

    The Excel file, i Need is stored in ; SharePoint>> Document >> Test >> Data >>July >>Trial.xlsx

    This is how my SharePoint Looks like, this is not the exact link, just an sample.
    https://forum/content/008200/default.aspx?RootFolder=%2Fcontent%2F00008200%20Documents%2DTest%2F0001%20%29&FolderCTID=0x01200083BC38D90EC5674491B520CC48282737&View={00112127-0FE6-44A4-A5FB-86BC6C4E835B}&InitialTabId=Ribbon%2EDocument&VisibilityContext=WSSTabPersistence


    Could someone help me how i can Code, to open the Excel file, stored in SharePoint.

    I tried a code, below, but it dint work with me. I am confused where i should mention my Folder Name

    Please Login or Register  to view this content.
    Regards
    Mikz

  2. #2
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,900

    Re: To open an Excel file from sharepoint folder using VBA

    Something like this: forget the https

    Please Login or Register  to view this content.
    Last edited by Keebellah; 07-17-2017 at 05:42 PM. Reason: extra infro
    ---
    Hans
    "IT" Always crosses your path!
    May the (vba) code be with you... if it isn't; start debugging!
    If you like my answer, Click the * below to say thank-you

  3. #3
    Registered User
    Join Date
    06-06-2017
    Location
    GERMANY
    MS-Off Ver
    EXCEL 2013
    Posts
    32

    Re: To open an Excel file from sharepoint folder using VBA

    Hi,

    Thank you for your Response, I already tried it and it dint work .

    To add on, I already know my Excel file Location. so I dont Need to open an file open Dialog box.

    Could you suggest me a code, how i could open an Excel file from SharePoint assuming my Excel file in SharePoint is in Location

    Documents \\ july \\ raw \\ raw.xlsx


    Regards
    Mikz

  4. #4
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,900

    Re: To open an Excel file from sharepoint folder using VBA

    Use if without the dialog.
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    06-06-2017
    Location
    GERMANY
    MS-Off Ver
    EXCEL 2013
    Posts
    32

    Re: To open an Excel file from sharepoint folder using VBA

    so, it should be just
    .InitialFileName = "\\forum\Content\008200\default.aspx" & "\\july\\raw\\raw.xlsx" ?

  6. #6
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,900

    Re: To open an Excel file from sharepoint folder using VBA

    You know what the full path should be, fill it in

+ 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. open all excel files in a sharepoint folder
    By Ish23 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 01-13-2021, 02:36 AM
  2. VBA to select SharePoint Content Type when saving Excel file to SharePoint
    By Luffk73 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-24-2017, 05:22 PM
  3. Open SharePoint file
    By rousseauassociates in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-20-2016, 08:00 AM
  4. VBA to save file to sharepoint folder
    By rlsublime in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-20-2014, 04:56 PM
  5. Replies: 0
    Last Post: 10-08-2013, 10:54 AM
  6. [SOLVED] Open all files in a SharePoint folder (Problem: Files open out of order)
    By holmstarrunner in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-10-2012, 10:13 AM
  7. Monitor a folder and open file in excel
    By ahartman in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-03-2010, 11:37 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