yes/no message box with question mark

Aviles

Board Regular
Joined
Dec 17, 2008
Messages
163
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

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
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,221,418
Messages
6,159,791
Members
451,589
Latest member
Harold14

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