使用同步到计算机的Sharepoint文件夹时获取Excel文档位置 [英] Get Excel Document Location when using Sharepoint folder synced to computer

查看:200
本文介绍了使用同步到计算机的Sharepoint文件夹时获取Excel文档位置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个excel文件,想要在文档属性面板中显示文档"位置"(即文件夹目录和文件名)。 

I have an excel file and want to get the documents 'Location' as showing in the Document Properties Panel (i.e. folder directory and filename). 

我的文件存储在SharePoint中,当通过SharePoint打开时,我可以使用ActiveWorkbook.FullName来获取我想要的URL字符串。

My file is stored in SharePoint, and when opened through SharePoint I can use ActiveWorkbook.FullName to get the URL string that I want.

但是,当我同步sharepoint文件夹并通过synced文件夹打开文件时,我得到了本地地址(即C:\ ...,而不是https://)。 我理解为什么,但https网址在地址
字段的文档属性面板中显示,我想要获取https地址,而不是本地地址,但是我不知道如何我希望这有意义,如果有的话,任何人都可以告诉我如何在Excel中获取从同步的sharepoint文件夹打开的工作簿
的https地址? 

However, when I sync the sharepoint folder and open the file through the synced folder I get the local address (ie. C:\..., rather than https://).  I understand why, but the https URL shows up in the Document Properties Panel in the Locations field and I would ideally like to get that https address, rather than the local address, but I have no idea how to do so. I hope that made sense, if so, can anyone tell me how in Excel I can get the https address for a workbook opened from a synced sharepoint folder? 

谢谢,

推荐答案

嗨詹姆斯,

感谢您在MSDN论坛上发帖。

Thanks for posting in MSDN forum.

>> 当我同步sharepoint文件夹并打开文件时同步文件夹我得到本地地址(即C:\ ...,而不是https://)。 我理解为什么,但https网址在地址
字段的文档属性面板中显示,我想要获取https地址,而不是本地地址,但是我不知道如何这样做。<<<

>> when I sync the sharepoint folder and open the file through the synced folder I get the local address (ie. C:\..., rather than https://).  I understand why, but the https URL shows up in the Document Properties Panel in the Locations field and I would ideally like to get that https address, rather than the local address, but I have no idea how to do so.<<

你的意思是当你在本地文件夹中打开文件然后全名返回本地地址,如果它在网上打开,那么全名返回使用https?

Did you mean when you open file in local folder then the full name returns local address and if it was opened in web, then the full name returns with https?

如果我理解正确,我的选择行为是正确的。如果我误解了,请随时告诉我。

If I understand correctly, the behavior is correct in my optionion. If I misunderstood, please feel free to let me know.

祝你好运

Fei


这篇关于使用同步到计算机的Sharepoint文件夹时获取Excel文档位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆