kelly mort
Well-known Member
- Joined
- Apr 10, 2017
- Messages
- 2,169
- Office Version
- 2016
- Platform
- Windows
Hello All,
I wanna know if it's possible to asign a caption to my message box other than the yes and no or the ok and cancel stuffs. If this is possible then somebody show me how to do it.
Thanks
Kelly
I wanna know if it's possible to asign a caption to my message box other than the yes and no or the ok and cancel stuffs. If this is possible then somebody show me how to do it.
Thanks
Kelly
Code:
Sub PrintMaster()
Dim answer As Long
answer = MsgBox("Are you sure about this?", _
vbYesNo + vbDefaultButton2 + vbQuestion, _
"Print MasterSheet?")
If answer = vbYes Then
With Sheet1
.PrintOut
End With
Else
Exit Sub
End If
End Sub