views:

43

answers:

0

Hello all!

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!

Thanks!


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!