|
|
Question : ActiveWorkbook.SaveAs Error 1004 with VBAProject Password Protected
|
|
I recieve the following error:
Run-time error '1004': You cannot save to this file format when the VBA project is protected. You may unprotect the VBA Project by choosing the properties command.......
The code I have is: ActiveWorkbook.SaveAs myUnit & " Proj.xls"
I need to have the code protected and still be able to use Save As.
Is this possible and if so how do I do it so I don't get the run-time error anymore?
Thanks
|
Answer : ActiveWorkbook.SaveAs Error 1004 with VBAProject Password Protected
|
|
Try specifying the format when you save.
ActiveWorkbook.SaveAs myUnit & " Proj.xls", xlWorkbookNormal
|
|
|
|