Finance

Charts

Statistics

Macros

Search

System Modal In Excel VBA

An example code of a system-modal message box is:

Sub MsgBoxSystemModal()
    MsgBox "You absolutely must read this", _
           vbOKOnly Or vbSystemModal, "Always on Top"
End Sub

Explanation:
The OK button and the vbSystemModal property are combined using the Or operator. This makes the dialog box stay always on top, even if the user switches to another application.

0 0 votes
Évaluation de l'article
S’abonner
Notification pour
guest
0 Commentaires
Le plus ancien
Le plus récent Le plus populaire
Online comments
Show all comments
Facebook
Twitter
LinkedIn
WhatsApp
Email
Print
0
We’d love to hear your thoughts — please leave a commentx