Ok donc je l'ai refait ett en effet elle apparait dans un module...Voilà donc ma macro ;
Sub Macro1()
'
' Macro1 Macro
' Macro enregistrée le 11/04/2008 par Olive
'
'
Range("B7:AD31").Select
Selection.Sort Key1:=Range("D7"), Order1:=xlAscending, Key2:=Range("E7") _
, Order2:=xlDescending, Key3:=Range("F7"), Order3:=xlDescending, Header _
:=xlGuess, OrderCustom:=1, MatchCase:=False, Orientation:=xlTopToBottom _
, DataOption1:=xlSortNormal, DataOption2:=xlSortNormal, DataOption3:= _
xlSortNormal
ChDir _
"C:\Documents and Settings\Olive.OLIVIER-POOL\Bureau\Championnat Lorraine 2007-2008\Modèles"
Workbooks.Open Filename:= _
"C:\Documents and Settings\Olive.OLIVIER-POOL\Bureau\Championnat Lorraine 2007-2008\Modèles\Majeur Régional Lorrain.xls"
Windows("Championnat Lorraine.xls").Activate
Range("B7:B31").Select
Selection.Copy
Windows("Majeur Régional Lorrain.xls").Activate
Range("B2").Select
ActiveSheet.Paste
Application.CutCopyMode = False
ChDir _
"C:\Documents and Settings\Olive.OLIVIER-POOL\Bureau\Championnat Lorraine 2007-2008\Tournoi suivants"
ActiveWorkbook.SaveAs Filename:= _
"C:\Documents and Settings\Olive.OLIVIER-POOL\Bureau\Championnat Lorraine 2007-2008\Tournoi suivants\Majeur Régional Lorrain.xls" _
, FileFormat:=xlNormal, Password:="", WriteResPassword:="", _
ReadOnlyRecommended:=False, CreateBackup:=False
ActiveWindow.Close
End Sub
Comme on peut le voir le chemin d'accés y figure pour trouver le fichier à copier/ouvrir/enregistrer sous nouveau dosser....