i’m coding a macro for word and excel. The output are generated files that should be saved.
Since those files already exist and are write protected, I somehow have to remove the protection. I found a unprotect function in excel but it doesn’t really work.
I also didn’t find any command for unprotecting via cmd o0
I thought about deleting the files before saving the new ones.
But I’d like to find a solution for unprotecting.
try attrib command in cmd to change file attributes
attrib *.xls -rwill help you to remove readonly attribute.