bonjour Gorfael,
Ta remarque est pertinente, et merci de me corriger

, j'avais vite répondu avec un copier coller du début d'une autre macro pour gagner du temps.
Application.EnableEvents = False
compteur = lignedepart
Cells(lignedepart, col).Select
lignemax = Selection.End(xlDown).Row
effectivement le blocage des évènements ne se justifie pas ici.
version corrigée à copier dans le module de ton fichier:
Sub datejour()
col = 2 'N° de la colonne des dates
lignedepart = 2 'N° de la 1ere ligne des noms à modifier selon ta feuille
'-----------------------------------------------------------------------
Dim compteur As Integer
compteur = lignedepart
Cells(lignedepart, col).Select
lignemax = Selection.End(xlDown).Row
Range(Cells(lignedepart, col + 1), Cells(lignemax, col + 1)).ClearContents
Range(Cells(lignedepart, col), Cells(lignemax, col)).Select
For Each cel In Selection
Cells(cel.Row, 4).FormulaR1C1 = "=IF(RC[-2]=TODAY(),RC[-3],"""")"
If IsDate(cel) And cel = Date Then Cells(compteur, 3) = Cells(cel.Row, 1): compteur = compteur + 1
Next
Cells(lignedepart, col + 1).Select
End Sub
-->Message édité par willyplaisir le 07/10/2009 10:10:56<--