Is there a way to add an image to a MessageBox in VBA?
I am wondering if it is possible to add an image to a messagebox in VBA mainly, but if not 开发者_C百科any other languages.
MsgReply = MsgBox("InspectionCreator - Continue?", vbMsgBoxSetForeground + vbSystemModal + vbYesNo)
If vbYes = MsgReply Then
Listener.Connect2SW
Else: End
End If
No, you can't display an image in a MessageBox. Unless you mean the symbols such as Warning, Error, etc?
Although you could simulate it by creating a UserForm which has the appearance of a MessageBox, with an image in the background and then just Show()
the form instead of calling the MsgBox function.
精彩评论