Sub Essaijulien()
' Essaijulien Macro
' Macro enregistrée le 29/10/2009 par Bernard BAUDOIN pour JulienB
' Touche de raccourci du clavier: Ctrl+b
Dim lig As Long, cpt, cpt1, titre
i = 0
k = 0
i = Range("A65536").End(xlUp).Row()
For k = 1 To i
Rows.Delete
Next
Columns("A:A").Select
Selection.ColumnWidth = 38
Columns("B:F").Select
Selection.ColumnWidth = 12
Range("A1").Select
ChDir "C:\Julien\"
repertoire = "C:\Julien\"
masque = repertoire & "*.xls"
nf = Dir(masque)
dernlig = 0
Do While nf <> ""
Workbooks.Open Filename:=nf
titre = Range("A10")
cpt = "F" & Application.WorksheetFunction.CountA(Sheets("fic1").Range("A1:A65000")) + 10
cpt1 = "A11"
Range(cpt1 & ":" & cpt).Select
Selection.Copy
Windows("Recap.xls").Activate
lig = Range("A65536").End(xlUp).Row + 3
'Range("A" & lig - 1).Merge
Range("A" & lig - 1) = titre
Range("A" & lig).Activate
ActiveSheet.Paste
ChDir "C:\Julien\"
Workbooks.Open Filename:=nf
ActiveWorkbook.Close
nf = Dir()
Loop
ChDir "C:\Julienrecap\"
Range("H1").Select
End Sub