Re : macro
bonjour,
voici la macro
'selection du jour
Dim semaine(), j As String
semaine = Array("lundi", "mardi", "mercredi", "jeudi", "vendredi", "samedi", "dimanche")
j = InputBox("Quel jour ? :", "Saisir le jour")
' Cells(WorksheetFunction.Match(j, lundi, 0) + 3, 6) = "Coller ici"
'Public jours()
'Public acoller()
'Sub coller()
'Dim jours(), j As String
'semaine = Array("lundi", "mardi", "mercredi", "jeudi", "vendredi", "samedi", "dimanche")
jours = Array("lundi", "mardi", "mercredi", "jeudi", "vendredi", "samedi", "dimanche")
acoller = Array("F4", "J4", "L4", "N4", "P4", "R4", "S4")
Sheets("erreurs WMS").Range("i10:l539").Copy
Sheets("recap semaine").Select
'UserForm1.Show
'End Sub
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
On Error GoTo Faute_de_Frappe
Cells(1, WorksheetFunction.Match(j, semaine, 0)) = "Coller ici"
Exit Sub
Faute_de_Frappe:
MsgBox ("Le jour " & j & "n'existe pas !")
End Sub
a+