Twitter iPhone pliant OnePlus 11 PS5 Disney+ Orange Livebox Windows 11

Message d'attente

3 réponses
Avatar
Brat'ac
Bonjour,
Pendant le traitement d'une macro longue je masque Excel et le restore
à la fin du traitement comme ceci

Application.WindowState = xlMinimized
execute ma macro
Application.WindowState = xlNormal

C'est bon pas de PB

J'aimerais si possible à l'écran un message qui
dise par exemple "traitement en cours merci de patienter"
C'est possible ?

Merci.

3 réponses

Avatar
Michd
Bonjour,
Oui c'est possible. Utilise un textbox dans un formulaire. Inscris le texte que tu désires dans le
textbox.
Application.WindowState = xlMinimized
Userform1.Show 0
Userform1.repaint
execute ma macro
Application.WindowState = xlNormal
MichD
Avatar
Michd
Application.WindowState = xlMinimized
Userform1.Show 0
Userform1.repaint
execute ma macro
Userform1.HIde
Unload Userform1
Application.WindowState = xlNormal
MichD
Avatar
Brat'ac
Michd a présenté l'énoncé suivant :
Application.WindowState = xlMinimized
Userform1.Show 0
Userform1.repaint
execute ma macro
Userform1.HIde
Unload Userform1
Application.WindowState = xlNormal
MichD

Superbe, c'est OK !!
Merci et bonne fin de soirée.