The following macro, message_popup1, displays a dialog box with a single line of text and an OK button, as illustrated:
Sub message_popup1()
'
' message_popup Macro
' Display a pop-up message
'
MsgBox "This Word macro requires your attention", vbOKOnly, "Hey there!"
End Sub
The first argument to the MsgBox command is the text to display in the dialog box. The second argument, vbOKOnly, directs Word to show only the OK button. The final argument — "Hey there!" — is the dialog box's title, as shown here.