到网络上另一个工作簿的绝对链接
我目前有一个 Excel 工作簿,其中的值是从网络上同一文件夹中的其他工作簿中提取的。
无论在何处打开此工作簿,工作簿的链接都会发生变化,并且不再有效,因为它保持相对于您打开它的位置。我需要每次都指向同一个地方的路径。
它应该指向哪里的示例。
='\\1.1.1.1\intranet\lp\files\test\[metricsheet.xlsm]information'!$B$13
有没有办法在没有VBA的情况下保持这条路径(绝对)?
谢谢!
I currently have a excel workbook that has values being pulled from other workbooks in the same folder on the network.
Wherever this workbook is opened, the link to the workbook changes, and no longer works, as it stays relative to where you are opening it from. I need the path to point to the same place every time.
Example for where it should be pointing.
='\\1.1.1.1\intranet\lp\files\test\[metricsheet.xlsm]information'!$B$13
Is there a way to keep this path (absolute) without VBA?
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
如果第一部分 (1.1.1.1) 是 IP 地址,则需要两个斜杠。单个斜杠仅指目录,而不是服务器。
If the first part (1.1.1.1) is an ip address, you need two slashes. A single slash just refers to a directory, not a server.
发现问题了。这种路径格式确实有效。但是相对路径与我想要的绝对路径匹配,因为它存储在同一文件夹中。将其移出,然后复制/粘贴相同的路径,使其保留下来。
Found out the issue. This path format does work.. however the relative path was matching the absolute path I wanted, as it was stored in the same folder. Moving it out and then copy/pasting the same path back in, caused it to stay.