Bonjour CORDIA5,
j'ai modifié la formule en cellule E4 =DATE(ANNEE(D4);MOIS(D4)+1;1) et recopier à droite
Sub Test()
Dim c As Double, col As Integer
c = DateSerial(Year(Date), Month(Date), 1)
col = Application.Match(c, Rows(4), 0)
Application.Goto Cells(1, col), True
End Sub
sabV a écrit :
Bonjour CORDIA5,
j'ai modifié la formule en cellule E4 =DATE(ANNEE(D4);MOIS(D4)+1;1) et recopier à droite
Sub Test()
Dim c As Double, col As Integer
c = DateSerial(Year(Date), Month(Date), 1)
col = Application.Match(c, Rows(4), 0)
Application.Goto Cells(1, col), True
End Sub
edit: si la cellule D4 est égal à la date d'aujourd'hui, il faudra prévoir autre chose.