Bonjour,
J'essaye d'ouvrir à partir de mon code VBA un fichier Excel
Quand je regarde dans l'objet xlApp, il est affecté à mon Excel 2003 alors qu'il y a deux jours, il était affecté à mon Excel 2007 (dans "path")
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8 Dim xlApp As Excel.Application Dim xlSheet As Excel.Worksheet Dim xlBook As Excel.Workbook Set xlApp = CreateObject("Excel.Application") Set xlBook = xlApp.Workbooks.Open(Application.CurrentProject.Path & "\test.xlsm") Set xlSheet = xlBook.Worksheets("Root")
Comment changer Excel.Application par défaut à Excel 2007 ?
Merci, je galère là !!
Partager