Teleporpoise
New Member
- Joined
- May 23, 2019
- Messages
- 31
Hi Mr. Excel Friends,
I want to have my workbook save and close certain times in the day. I have tried inputting this code in the "This Workbook" object:
But it isn't working. Can you help me?
Thanks,
I want to have my workbook save and close certain times in the day. I have tried inputting this code in the "This Workbook" object:
Code:
Sub Close_Workbook()
Dim Wkb As Workbook
If Time() = Time.Value("13:30:00") Then
ThisWorkbook.Close SaveChanges:=True
End If
End Sub
Thanks,