Vous n’avez pas trouvé la réponse que vous recherchez ?
Posez votre questionIf textbox1.value = "" then
textbox1.value = Date
Elseif textbox2.value = "" then
textbox2.value = date
Elseif
etc ...
For i = 1 to 3
if controls("TextBox" & i).value = "" then
controls("TextBox" & i).value = date
exit for
end if
next
toto = Array(TextBox1, TextBox2, TextBox3)
For i = 0 To UBound(toto)
If toto(i).Value = "" Then
toto(i).Value = Date
Exit For
End If
Next