Clarence Perdue Jr.
Member
Hello,
I has this procedure code call SafelyQuit down Personal.XLSB. I can not find the Personal.XLSB when the application is running. Here is the code segment below. Can someone find the Personal.XLSB for me and explain what is doing. Thanks in advance.
Public Function SafelyQuit() As Boolean
Dim wb As Workbook, wbn As String, cwb As String
Application.EnableEvents = False
cwb = ThisWorkbook.Name
SafelyQuit = True
For Each wb In Workbooks
wb.Activate
wbn = ActiveWorkbook.Name
If wbn <> cwb And UCase(wbn) <> "PERSONAL.XLSB" Then
SafelyQuit = False
Exit Function
End If
Next
End Function
I has this procedure code call SafelyQuit down Personal.XLSB. I can not find the Personal.XLSB when the application is running. Here is the code segment below. Can someone find the Personal.XLSB for me and explain what is doing. Thanks in advance.
Public Function SafelyQuit() As Boolean
Dim wb As Workbook, wbn As String, cwb As String
Application.EnableEvents = False
cwb = ThisWorkbook.Name
SafelyQuit = True
For Each wb In Workbooks
wb.Activate
wbn = ActiveWorkbook.Name
If wbn <> cwb And UCase(wbn) <> "PERSONAL.XLSB" Then
SafelyQuit = False
Exit Function
End If
Next
End Function