S Oberlander
Board Regular
- Joined
- Nov 25, 2020
- Messages
- 156
- Office Version
- 365
- Platform
- Windows
I have the below on my personal macro workbook to save a backup (I nearly lost it one time too many);
but its not getting called:
but its not getting called:
VBA Code:
Private Sub Workbook_BeforeClose(Cancel As Boolean)
ActiveWorkbook.SaveAs "https://smpl-my.sharepoint.com/personal/myuser_com/Documents/Desktop/Personal backup.xlsb", FileFormat:=50, CreateBackup:=False
End Sub