re,
Pisser dans un violon, quelle belle expression
BatyBaty assigne sa date dans une autre macro, alors je pense qu'on doit le faire comme ça, mais je ne déclare presque jamais (par conviction) mes variables ...
Public MaDate 'As Date
Sub AssignerDate()
MaDate = DateSerial(2023, 1, 1)
End Sub
Sub Scroll()
Dim rw, dt As Long
dt = MaDate
With Worksheets(1)
rw = Application.Match(dt, .Columns(1), 0)
If IsError(rw) Then
MsgBox "date du jour inexistante", 64, "Information"
Else
.Cells(rw, 1).Select
End If
End With
End Sub