Bonjour à tous,
Lors de l'execution de ce script :

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
Dim excel As New Microsoft.Office.Interop.Excel.Application
Dim workbook As Microsoft.Office.Interop.Excel.Workbooks
Dim worksheet As Microsoft.Office.Interop.Excel.Worksheet
 
excel = New Microsoft.Office.Interop.Excel.Application
workbook = excel.Workbooks.Open("c:\fichier.xls")
excel.Visible = True
J'ai ce type d'erreur :
"Application" is ambiguous in the namespace 'Microsoft.Office.Interop.Excel' (BC30560).
"Workbooks" is ambiguous in the namespace 'Microsoft.Office.Interop.Excel' (BC30560).
"Worksheet" is ambiguous in the namespace 'Microsoft.Office.Interop.Excel' (BC30560).

que faire pour regler cette erreur ?