yes/no message box with question mark

Aviles

Board Regular
Joined
Dec 17, 2008
Messages
173
Office Version
  1. 365
Platform
  1. Windows
Hello,

I am using the following code for my message box:

Code:
Set Wkb2 = ActiveWorkbook
Wkb2.ActiveSheet.UsedRange.Copy Workbooks("PrimeCo.xlsm").Worksheets("Mel").Range("A1")

YesNo = MsgBox("Is this the Correct MEL Side File?", vbYesNo + vbCritical, "Click on Yes or No")
Select Case YesNo
Case vbYes
Windows("PrimeCo.xlsm").Activate
Sheets("PrimeCo Home").Select
Case vbNo
Windows("PrimeCo.xlsm").Activate
Sheets("Mel").Cells.Clear
Windows("PrimeCo.xlsm").Activate
Sheets("PrimeCo Home").Select
End Select
End With

The code works fine, but the message box comes up with a symbol of a white "X" inside a red circle.

I would like this message box to show a "Question Mark" symbol instead. Is there a way to amend the code?

Searches I've done says you can add a this symbol by adding a 'symbol type' as part of the message box code, for example, type 32... but I have no idea how to work this type into my code. Please help.
 

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
Replace vbCritical with vbQuestion
 
Upvote 0
Try:

YesNo = MsgBox("Is this the Correct MEL Side File?", vbYesNo + vbQuestion, "Click on Yes or No")
 
Upvote 0

Forum statistics

Threads
1,224,755
Messages
6,180,766
Members
452,996
Latest member
nelsonsix66

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top