gpt4 book ai didi

excel - Excel 中对 Sharepoint 上其他工作簿的单元格引用/公式不会更新值

转载 作者:行者123 更新时间:2023-12-04 20:51:29 25 4
gpt4 key购买 nike

问题
我有八个 Excel 文档存储在 Sharepoint 站点上。其中一个文档(“接收文件”)包含对 Sharepoint 上其他七个文档(“ 源文件 ”)的公式/单元格引用。
创建引用后一切正常。
保存并关闭工作簿然后重新打开后,接收文件不再更新源文件中的值。
这些文件在 Windows 资源管理器中同步,并在 Excel 的桌面版本中打开。此外,所有八个文件同时打开。
引用首先看起来像这样

='[Source file.xlsx]Sheet1'!$A$1
关闭并重新打开后,引用将如下所示
='https://somecompanyname.sharepoint.com/sites/SitefortestingExcelreferences/Shared Documents/[Source file.xlsx]Sheet1'!$A$1
如果我现在更改源值中的值,则更改不会出现在接收文件中。
到目前为止我尝试了什么
  • 将“计算”设置为“自动”。
  • 单击“立即计算”和“计算表”。
  • 双击带有引用的单元格,然后按 Enter。
  • 在“数据 > 查询和连接”中单击“全部刷新”
  • 在“数据 > 查询和连接 > 编辑链接”中,我单击了更新值。它没有帮助。然而,我试图用两个文件和一个引用重建一个简单的系统,在这里它确实有效

  • 从第 5 点开始)我编写了一个小宏来更新所有打开的工作簿中的所有链接(它也没有帮助):
    Option Explicit

    Sub UpdateAllConnections()

    Dim wbWorkbook As Workbook

    For Each wbWorkbook In Application.Workbooks
    wbWorkbook.UpdateLink Name:=wbWorkbook.LinkSources, Type:=xlExcelLinks
    Next wbWorkbook

    MsgBox "Update complete.", vbInformation, "Complete"
    End Sub
    如果我删除 SharePoint 的路径,那么公式看起来像这样
    ='[Source file.xlsx]Sheet1'!$A$1
    它再次起作用(直到我保存并重新打开)。
    我在 Microsoft Answers 上找到了以下内容(关于 OneDrive,但可能是同一个问题):
    https://answers.microsoft.com/en-us/msoffice/forum/all/excel-value-links-not-updating-on-onedrive/e48a7680-71e6-4a77-9eb1-e03ec7f0e3e0

    I contacted the official O365 support desk and they told me this is built into the connection between Excel and OneDrive.
    They have received thousands of complaints and there is no fix for it.
    No option to tell Excel/Office/OneDrive to link to local copies of files on 1D by default.
    No fix is planned as this is not how MS envisions how Excel/1D should be used.


    我的问题
    有什么建议么? Excel 中是否有任何工具可用于自动或手动更新链接的单元格? SharePoint 设置是否会阻止更新?
    如果没有,由于删除 SharePoint 的文件路径似乎可行,有办法(使用 VBA)从所有单元格引用中删除完整的文件路径,所以
    ='https://somecompanyname.sharepoint.com/sites/SitefortestingExcelreferences/Shared Documents/[Source file.xlsx]Sheet1'!$A$1
    变成
    ='[Source file.xlsx]Sheet1'!$A$1
    我可能会遍历所有单元格并简单地用任何内容替换路径,但这只有在我事先知道文件路径并且所有文件都存储在同一个 SharePoint 文件夹中时才有效。

    最佳答案

    我遇到了同样的问题,这是我的解决方法:我可以通过单击 ... 打开 Sharepoint 站点上的源文件。然后 Open in App (相对于 Open in Browser )接收文件中的引用单元格将变为 ='[Source file.xlsx]Sheet1'!$A$1再次自动更新。

    关于excel - Excel 中对 Sharepoint 上其他工作簿的单元格引用/公式不会更新值,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59252642/

    25 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com