Sub Macro3()
'
' Macro3 Macro
'
' Touche de raccourci du clavier: Ctrl+ù
'
Columns("A:A").Select
Selection.TextToColumns Destination:=Range("A1"), DataType:=xlDelimited, _
TextQualifier:=xlDoubleQuote, ConsecutiveDelimiter:=False, Tab:=True, _
Semicolon:=False, Comma:=True, Space:=False, Other:=False, FieldInfo _
:=Array(Array(1, 1), Array(2, 1), Array(3, 1), Array(4, 1), Array(5, 1), Array(6, 1)), _
TrailingMinusNumbers:=True
Range("A1").Select
ActiveCell.FormulaR1C1 = "Piece"
Range("B1").Select
ActiveCell.FormulaR1C1 = "Qté"
Range("C1").Select
ActiveCell.FormulaR1C1 = "Ep"
Range("D1").Select
ActiveCell.FormulaR1C1 = "Larg"
Range("E1").Select
ActiveCell.FormulaR1C1 = "Long"
Range("F1").Select
ActiveCell.FormulaR1C1 = "Materiel"
Columns("A:F").Select
Selection.Columns.AutoFit
With Selection
.HorizontalAlignment = xlCenter
.VerticalAlignment = xlBottom
.WrapText = False
.Orientation = 0
.AddIndent = False
.IndentLevel = 0
.ShrinkToFit = False
.ReadingOrder = xlContext
.MergeCells = False
End With
Columns("A:A").Select
With Selection
.HorizontalAlignment = xlLeft
.VerticalAlignment = xlBottom
.WrapText = False
.Orientation = 0
.AddIndent = False
.IndentLevel = 0
.ShrinkToFit = False
.ReadingOrder = xlContext
.MergeCells = False
End With
Dossier = ThisWorkbook.Path
NomDuFichier = InputBox("nom du fichier: (ne pas oublier le '.xls')")
Chemin = Dossier & NomDuFichier
ActiveWorkbook.SaveAs Filename:=Chemin, FileFormat:=xlNormal, _
Password:="", WriteResPassword:="", ReadOnlyRecommended:=False, _
CreateBackup:=False
End Sub