Convertion de format heure sur VBA

Bonjour,

Comment convertir un format d'heure 5:15 par un format 05:00:00, par VBA?
Merci

1 réponse

  1. Contributeur
    Bonjour,
    Dim T As String
    Dim S As String
        T = "05:15"
        S = TimeSerial(Hour(T), 0, 0)
        MsgBox S

    A+
    1