tatayoyo38
XLDnaute Nouveau
Bonjour,
J'utilise ce code pour fermer Excel :
Surtout la derniere ligne en fait.
Seul soucit, il reste afficher dans mon Task Manager et comme je lance excel via un fichier bat le fichier bat ne peut pas continuer car il attend la fermeture de excel.
Comment faire ?
Merci a tous.
J'utilise ce code pour fermer Excel :
Code:
Private Sub Workbook_BeforeClose(Cancel As Boolean)
ActiveWindow.DisplayGridlines = True
ActiveWindow.DisplayHeadings = True
ActiveWindow.DisplayHorizontalScrollBar = True
ActiveWindow.DisplayWorkbookTabs = True
Application.DisplayFullScreen = False
Application.DisplayFormulaBar = True
Application.DisplayStatusBar = True
Application.WindowState = xlMaximized
Application.ScreenUpdating = True
Application.Quit
End Sub
Surtout la derniere ligne en fait.
Seul soucit, il reste afficher dans mon Task Manager et comme je lance excel via un fichier bat le fichier bat ne peut pas continuer car il attend la fermeture de excel.
Comment faire ?
Merci a tous.