OVH Cloud OVH Cloud

Application.quit bizarre...

1 réponse
Avatar
René Delcourt
Il n'y a qu'une application ouverte mais msgbox(workbooks.count) me dit 2!!!

Y a-t-il des fichiers cachés?

Private Sub Workbook_BeforeClose(Cancel As Boolean)
If Workbooks.Count = 1 Then
Application.Quit
End If
End Sub

--
René Delcourt

1 réponse

Avatar
Clément Marcotte
Y a-t-il des fichiers cachés?


Oui, Perso.xls



"René Delcourt" a écrit dans le message de news:

Il n'y a qu'une application ouverte mais msgbox(workbooks.count) me dit
2!!!

Private Sub Workbook_BeforeClose(Cancel As Boolean)
If Workbooks.Count = 1 Then
Application.Quit
End If
End Sub

--
René Delcourt