Erreur dans ma VBA

Résolu
bonjour a tous
qui pourrait m'aider à trouver mon erreur
Ca ne marque pas la date

Sub aujourdhui()
Dim r As Range
Dim c As Range
Set r = Range("A10:A28")
For Each c In r.Cells
If c.Font.Bold Then
Application.EnableEvents = False
c.Offset(0, 69)= &TEXTE(AUJOURDHUI();"jjjj jj mmmm aaaa")&"
Application.EnableEvents = True
End If
Next c
End Sub

Si A10:A128 sont gras offset 0,69 et là c'est le problème!
vous êtes super!
merci à tous

2 réponses

  1. Sub aujourdhui()
    Dim r As Range
    Dim c As Range
    Set r = Range("A10:A28")
    For Each c In r.Cells
    If c.Font.Bold Then
    Application.EnableEvents = False
    c.Offset(0, 69) = "=TODAY()"
    Application.EnableEvents = True
    End If
    Next c
    End Sub

    voilà J'ai trouvé
    0
    1. Bonjour Jack, bonjour le forum,

      Essaie comme ça :
      Sub aujourdhui()
      Dim r As Range
      Dim c As Range
      
      Set r = Range("A10:A28")
      For Each c In r.Cells
      If c.Font.Bold Then
          c.Offset(0, 69) = Format(Date, "dddd dd mmmm yyyy")
      End If
      Next c
      End Sub 


      Ta macro n'étant pas l'événementielle Change les : Application.EnableEvents = False/True sont inutiles...
      1