Comment quitter l'application Excel.exe automatiquement en VBA (SharePoint 2010) ?
Bonjour,
J'essaye de fermer automatiquement un document Excel ouvert à partir d'un site Sharepoint 2010. Mais je n'y arrive pas.
J'ai tout essayé (ou presque) et rien a faire. Une fenêtre avec comme titre "Microsoft Excel" reste ouvert avec "There are no supported properties to display".
Je fais un "SaveAs" automatique et après ...
J'ai essayé :
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13
| ActiveWorkbook.Close
Application.Quit
'ou
Application.DisplayAlerts = False
Application.Quit
'ou
Shell("taskkill /F /IM Excel.exe")
'ou
Dim Excel_App As Excel.Application
ActiveWorkbook.Close SaveChanges:=False
Shell ("taskkill /F /IM Excel.exe")
Excel_App.Quit
Set Excel_App = Nothing |
Mais rien ne fonctionne (quand tout ne plante pas :cry: )
Auriez-vous une idée ?
voici les images Avant et Après "SaveAs":
( https://skydrive.live.com/redir?resi...734890B859!159
et https://skydrive.live.com/redir?resi...734890B859!160 )
https://skydrive.live.com/redir?resi...734890B859!159
https://skydrive.live.com/redir?resi...734890B859!160
Merci