Re : activation desactivation userform dans une boucle
Salut Tati,
pourrais t-on voir le code complet (dans un fichier épuré)
je pense que ton erreur vient de la suite de ta macro, mais anne ma soeur anne ne voit rien ...
sinon, teste
application.screenupdating = false
k =1
UserForm1.Show
Do
PerCent = k / Nb_mesure
application.screenupdating = true
With UserForm1
.Frame1.Caption = Format(PerCent, "0%")
.Label1.Width = PerCent * (.Frame1.Width - 10)
.Repaint
End With
application.screenupdating = false
???????????
...
programme très complexe
...
k=k+1
Loop While k<1000