Code VBA pour une fenêtre pop-up : ```vba Sub ShowMessage() MsgBox "Ceci est un message d'alerte", vbInformation, "Titre de la fenêtre" End Sub ```
Solved
chouchen_lolo
Posted messages
38
Registration date
Status
Member
-
chouchen_lolo Posted messages 38 Registration date Status Member -
chouchen_lolo Posted messages 38 Registration date Status Member -
Bonjour,
I would like to include a pop-up window opening with the message "please wait..." in a resource-intensive macro in Excel.
Basically, I want a window asking me to wait to open when I launch the macro, while the macro's base function runs normally, and the window automatically disappears once the calculation is finished.
The only thing I have found so far is this:
...
warning = MsgBox("This will take time", vbExclamation + vbOKCancel, "WARNING")
If warning = vbCancel Then End
...
This command opens a window with the message "This will take time" with an OK button and a Cancel button.
If I choose Cancel, the macro stops.
If I choose OK, the window closes and the macro runs normally; it is lengthy, and an inexperienced user might think the PC has frozen.
Can you help me?
Thank you in advance.
I would like to include a pop-up window opening with the message "please wait..." in a resource-intensive macro in Excel.
Basically, I want a window asking me to wait to open when I launch the macro, while the macro's base function runs normally, and the window automatically disappears once the calculation is finished.
The only thing I have found so far is this:
...
warning = MsgBox("This will take time", vbExclamation + vbOKCancel, "WARNING")
If warning = vbCancel Then End
...
This command opens a window with the message "This will take time" with an OK button and a Cancel button.
If I choose Cancel, the macro stops.
If I choose OK, the window closes and the macro runs normally; it is lengthy, and an inexperienced user might think the PC has frozen.
Can you help me?
Thank you in advance.