Bonjour,Voici un code qui importe des fichiers Excel, mais il faudra modifier les champs et le fichier Excel pour qu'il fonctionne.Sub Initialize Dim xlFilename As String xlFilename = "H:\Test.xls" '// This is the name of the Excel file that will be imported Dim session As New NotesSession Dim db As NotesDatabase Dim view As NotesView Dim doc As NotesDocument Set db = session.CurrentDatabase Set doc = New NotesDocument(db) Dim One As String Dim row As Integer Dim written As Integer '// Next we connect to Excel and open the file. Then start pulling over the records. Dim Excel As Variant Dim xlWorkbook As Variant Dim xlSheet As Variant Print "Connecting to Excel..." Set Excel = CreateObject( "Excel.Application" ) Excel.Visible = False '// Don't display the Excel window Print "Opening " & xlFilename & "..." Excel.Workbooks.Open xlFilename '// Open the Excel file Set xlWorkbook = Excel.ActiveWorkbook Set xlSheet = xlWorkbook.ActiveSheet '// Cycle through the rows of the Excel file, pulling the data over to Notes Goto Records Print "Disconnecting from Excel..." xlWorkbook.Close False '// Close the Excel file without saving (we made no changes) Excel.Quit '// Close Excel Set Excel = Nothing '// Free the memory that we'd used Print " " '// Clear the status line Records: row = 0 '// These integers intialize to zero anyway written = 0 Print "Starting import from Excel file..." Do While True Finish: With xlSheet row = row + 1 Set view = db.GetView("Main View") Set doc = db.CreateDocument '// Create a new doc doc.Form = "ImportForm1" doc.SWEPO = .Cells( row, 1 ).Value doc.SWEORDER = .Cells(row, 2 ).Value doc.SWEORDERDATE = .Cells(row, 3).Value doc.ITEMNUMBER = .Cells( row, 4 ).Value doc.ORDERSTATUS = .Cells(row, 5).Value doc.QUANTITYORDERED = .Cells( row, 6).Value doc.AMOUNTBILLED = .Cells(row, 7).Value doc.SHIPMETHOD = .Cells( row,

.Value doc.SHIPDATE = .Cells(row, 9).Value doc.TRACKINGNUMBER = .Cells(row, 10).Value Call doc.Save( True, True ) '// Save the new doc written = written + 1 If written = 100 Then Print written Print written & "record stopped at..", doc.SWEPO(0), doc.SWEORDER(0),doc.SWEORDERDATE(0),doc.ITEMNUMBER(0) ans$ = Inputbox$("Do you want to continue, Y/N?") If ans$ = "Y" Or ans$ ="y" Then Goto Finish Else Goto Done End If End If' End If End With Loop ReturnDone:End Sub[%sig%]