0

save workbook in vba

I tested below codes but didn’t work: Sub saveMyFile() ThisWorkbook.Save End sub Sub saveMyFile() Application.ThisWorkbook.Save End sub When I try to close application that asked me about save or not.

12th Mar 2022, 10:56 PM
hamid
hamid - avatar
2 ответов
0
rodwynnejones thank you, But i would like to call it from other modules and dont want to add any code to Thisworkbook
13th Mar 2022, 8:44 AM
hamid
hamid - avatar