Bonjour à tous du forum,
j'ai établi une macro avec ajoute 'inputbox' pour ajouter d'autres données.
Acutellement est effectué une recherche ( Si C20 = "" ), avant que inputbox est affiché.
Comment est affiché directement 'inputbox' sans effectuer de recherche ?,
Sub an_inputbox()
Sheets("data").Activate
Range("C5").Select
Selection.Copy
Range("C" & Range("C65536").End(xlUp).Row + 1).Select
If Range("C20") = "" Then
reponse = inputbox("add others" + _
" or press 'STOP' or 'Annuler' to finish")
If UCase(reponse) = "STOP" Then End
ActiveCell.Value = reponse
' to paste format to ActiveCell
Selection.PasteSpecial Paste:=xlPasteFormats, Operation:=xlNone, _
SkipBlanks:=False, Transpose:=False
Application.CutCopyMode = False
End If
End Sub
ci-joint fichier explicite,
j'ai établi une macro avec ajoute 'inputbox' pour ajouter d'autres données.
Acutellement est effectué une recherche ( Si C20 = "" ), avant que inputbox est affiché.
Comment est affiché directement 'inputbox' sans effectuer de recherche ?,
Sub an_inputbox()
Sheets("data").Activate
Range("C5").Select
Selection.Copy
Range("C" & Range("C65536").End(xlUp).Row + 1).Select
If Range("C20") = "" Then
reponse = inputbox("add others" + _
" or press 'STOP' or 'Annuler' to finish")
If UCase(reponse) = "STOP" Then End
ActiveCell.Value = reponse
' to paste format to ActiveCell
Selection.PasteSpecial Paste:=xlPasteFormats, Operation:=xlNone, _
SkipBlanks:=False, Transpose:=False
Application.CutCopyMode = False
End If
End Sub
ci-joint fichier explicite,
Pièces jointes
Dernière édition: