Finance

Charts

Statistics

Macros

Search

OK Button in Excel VBA

First, the code example:

Sub MsgBoxOkOnly()
    MsgBox "Read? Then please press OK", vbOKOnly, "OK"
End Sub

Explanation:
The first parameter is the message text displayed in the message box, which you are already familiar with.

The second parameter is optional and controls the appearance and behavior of the dialog box. In this example, the constant vbOKOnly is used to display only the OK button — this is also the default setting.

The third parameter is also optional and specifies the title of the dialog box window. If omitted, the title defaults to the name of the 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