I open/write/close files all the time with VBA code, and the only time I can't save changes is when the file is marked read only within the file system, or someone has set the internal "Read Only Recommended" option. Do you have either of these situations? If the first, you need to turn off the read only option (which can be doen programmatically a couple of ways). If the second, I believe this option can be turned off programmatically, as long as the password is not also set.
Dave
|