Réponse acceptée !
salut,
pas la bonne méthode pour ouvrir excel, voici comment procéder :
déjà, référence dans ton projet ppt (menu outils du vba
) Microsoft excel objects library
Ensuite, quand t'as besoin d'ouvrir :
Dim xlApp as New Excel.Application
Dim xlBook as Excel.Workbook
Dim xlSheet as Excel.Worksheet
xlApp.Visible = true
set xlBook = xlApp.WorkBooks.Open "c:\chemin\nom fichier.xls"
set xlSheet = xlBook.Sheets("Nom feuille")
xlSheet.Select
et quand t'as plus besoin,
xlBook.Close True 'ou false
Set xlSheet = nothing
Set xlBook = nothing
Set xlApp = nothing
@++
le mystérieux chevalier,"Provençal, le gaulois"
Forum Office & VBA