ouverture bouton de saisie

  • Initiateur de la discussion Michel
  • Date de début
M

Michel

Guest
Bonjour,
J'ai un bouton avec une macro (pour l'instant tout va bien).... comment faire pour lorsque je clic sur mon bouton s'ouvre une box ou je puisse saisir un nombre.

Merci Merci..
Michel
 
M

Michel

Guest
Bonjour Sylvain
Un grand merci pour ta réponse, mais si je peux abuser.
Voici ma macro.
Comment faire pour que 'mavariable' soit égale au nombre saisie dans l'inputboix.
Merci
Michel

tota = Application.InputBox(prompt:='Tapez un nombre', Type:=1)
MsgBox 'Vous avez sélectionné ' & Target
mavariable = [tota].Value
Range('toto').Select
Selection.Cut Destination:=Range('B' & mavariable)
Range('C1:C' & mavariable).Select
Range('a1').Select
End Sub
 
M

Michel

Guest
Bonjour,
Merci j'ai trouvé comment faire :
mavairable=tota;
Merci encore à Sylvain...
Bonne journée
Michel

tota = Application.InputBox(prompt:='Tapez un nombre', Type:=1)
MsgBox 'Vous avez sélectionné ' & Target
mavariable = tota
Range('toto').Select
Selection.Cut Destination:=Range('B' & mavariable)
Range('C1:C' & mavariable).Select
Range('a1').Select
End Sub
 

Statistiques des forums

Discussions
314 011
Messages
2 104 528
Membres
109 063
dernier inscrit
rahimmcsaw