Excel - Application.GetSaveAsFilename 在只读文件上提示
我刚刚从 2003 年升级到 Excel 2010。 频繁使用的内部加载项使用 Application.GetSaveAsFilename 方法来提示输入要用于导出过程的文件名(将当前 Excel 文件中的信息导出到 xml 配置中)文件)。
在2003年,即使他们选择了只读文件,我也没有得到任何提示(这就是我想要的),让我来处理只读问题(我确实这么做了......例如我签出了文件源控制)。然而,升级到 2010 后,如果该文件存在并且是只读的,我无法选择文件名,这迫使我首先手动检出文件(当我每天导出约 60 个文件时,这对熟练程度来说是一个主要的降低因素) )。
有谁知道任何设置/解决方法,以便 Excel 2010 不会阻止(甚至希望提示)选择以前存在的/只读文件的文件名?
提前致谢。
I've just upgraded to Excel 2010 from 2003. An internal add-in that is heavily used uses the Application.GetSaveAsFilename method to prompt for file names to be used for an export process (exporting information from the current Excel file into an xml configuration file).
In 2003, even if they selected a Read Only file, I didn't get any prompts (which is what I want) leaving it up to me to handle read-only issues (which I do...e.g. I check the file out of source control). However, after upgrading to 2010, I can't select a filename if that file exists and is readonly, forcing me to manually go checkout files first (which is a major downer in terms of proficiency when I'm exporting ~60 files per day).
Does anyone know of any settings/workarounds so that Excel 2010 doesn't prevent (or even prompt hopefully) selecting a filename of a previously existing/readonly file?
Thanks in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您改用 Application.GetOpenFilename 有帮助吗?
对于只读文件,这不会给我带来任何错误。
Does it help if you use Application.GetOpenFilename instead?
This doesn't give me any errors for a read-only file.