default_name
Board Regular
- Joined
- May 16, 2018
- Messages
- 180
- Office Version
- 365
- 2016
- Platform
- Windows
- MacOS
Hey guys,
I am working on a workbook that is connected to a server. (The Check-In and Check-Out features are enabled)
Is there a way to run a few macros in the event that someone checks the file back in?
Initially I was using something like this to run some routines when the workbook was being closed.
But then I realized that it would be better to run/call the routines when the workbook is being Checked In (not when it is being closed)
Here is my failed attempt:
Some help with the syntax would be appreciated!
Thanks in advance for your help!
I am working on a workbook that is connected to a server. (The Check-In and Check-Out features are enabled)
Is there a way to run a few macros in the event that someone checks the file back in?
Initially I was using something like this to run some routines when the workbook was being closed.
VBA Code:
Private Sub Workbook_BeforeClose(Cancel As Boolean)
Call CopyExtra
Call ResetData
End Sub
But then I realized that it would be better to run/call the routines when the workbook is being Checked In (not when it is being closed)
Here is my failed attempt:
VBA Code:
Private Sub Workbook_Before.CheckIn(Cancel As Boolean)
Call CopyExtra
Call ResetData
End Sub
Thanks in advance for your help!