奇怪的自动化? Word2007中的错误

发布于 2024-09-29 09:52:39 字数 621 浏览 0 评论 0原文

我很抓狂,因为我的一位客户遇到了以下问题:

我的程序在 Word 中使用了大量的 VBA 自动化。宏保存在附加到每个文档的特定 Word 模板中。某些宏将当前文档保存到 [User]/AppData/Roaming/... 下的临时文件夹中以供进一步处理。

客户端使用的是Win7和Office2007(学生版)。在有问题的计算机上,我不断收到类似“无权保存文件”的错误(无法给出确切的错误消息,因为我已将其从我的语言翻译为英语)

当宏尝试“另存为”时,会发生这种情况”该文件。

奇怪的是,这种情况只发生十分之八,而且并非总是如此。没有为我尝试保存到的临时文件夹设置特殊权限。

我尝试过更改 Word 安全设置、尝试将文件夹添加到受信任的文件夹列表、尝试使用其他文件夹 - 但均无济于事。

客户的计算机安装了诺顿防病毒软件(或互联网安全软件,我不知道),但临时禁用它并没有解决问题。 (我知道我只能在完全卸载后才能确定,但​​我不能在客户端的计算机上执行此操作)

感谢任何帮助!


更新:此后我发现了确切的英文错误消息:“由于文件权限错误,Word 无法完成保存。”

我现在正在网上寻找类似的论坛帖子,但如果你们知道什么,请告诉我。谢谢!

I'm pulling my hair out because I've run into the following problem with one of my clients:

My program uses extensive VBA automation in Word. Macros are saved in a specific Word template that is attached to each document. Some of the macros save the current document to a temporary folder under [User]/AppData/Roaming/... for further processing.

The client is using Win7 with Office2007 (Student edition). On the computer in question I keep getting an error with something like "No permission to save the file" (can't give exact error message because I've translated it from my language to English)

This happens when the macro tries to "SaveAs" the document.

The strange thing is that it happens only 8 out of 10 times - and not all the time. There are no special permissions set for the temporary folder I'm trying to save to.

I've tried changing Word security settings, tried adding the folder to the trusted folders list, tried using a different folder - to no avail.

The client's computer has Norton Antivirus (or Internet Security, I dunno) installed but temporary disabling it didn't solve the problem. (I know I should only be sure after a full uninstall but I can't do that on the client's comp)

Any help is appreciated!


Update: I've since found the exact error message in English: "Word cannot complete the save due to a file permission error."

I'm now looking on the web for similar forum posts but if you guys know something, please let me know. Thanks!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

世界和平 2024-10-06 09:52:39

是否正在运行防病毒程序或类似程序?在我的开发计算机上,当我从(供应商“X”安全包)更改为 ESET

Is an antivirus or similar program running? On my development computers many similar problems went away when I changed from (vendor "X" security bundle) to ESET.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文