I can't save main file with VBA codes

Strange, because it is allowed by default, unless you configured XLS Padlock to forbid it.
Have you tried ActiveWorkbook.SaveAs?
 
Back
Top