Office 365 Workbooks.open from SharePoint Online opens blank file

前端 未结 1 1972
醉话见心
醉话见心 2021-01-27 16:46

Our company is using Office 365 Pro Plus on Semi-Annual update channel. Lately we\'ve been updated from version 1708 to 1803.

We are using some automation macros than op

相关标签:
1条回答
  • 2021-01-27 17:20

    Hi I had the same issue - and it was getting to me as it seemed such an easy thing! The problem is with your filename link.

     Set Wb = Workbooks.Open(Filename:="https://xxxxx.sharepoint.com/:x:/r/sites/XXX/AMTB%20RFQ%20costing/00%20General/Overview%20RFQs/Cost%20computations%20simple%20overview/2018%20AMTB_Cost_computations_overview_simple.xlsm?d=w8929b5112ed7496bb25d82b0bfc472c5&csf=1&e=PADrRt", ReadOnly:=False)
    

    The filename link you used is directly from SharePoint when you click "Share" or "Copy link", but what resolved this for me is by actually opening the SharePoint file in Desktop Excel. Then click File. You are then shown the "Info" page which shows the File Name - if you look directly below the filename (above where it says "Protect Workbook") there looks to be like breadcrumb links (folder names from SharePoint separated by >>) - click that section and click "Copy path to clipboard"

    Replace your Filename link in your code with this and it will work!

    0 讨论(0)
提交回复
热议问题