Smiley icon in code

JackDanIce

Well-known Member
Joined
Feb 3, 2010
Messages
9,922
Office Version
  1. 365
Platform
  1. Windows
Hi,

I have the following code:

MsgBox = "(Unless you know what you're doing)"

And would like to add a smiley face between the last two characters 'g' and ')' I'd like to use an actual symbol e.g. :) so it reads:

(Unless you know what you're doing :))

And not (Unless you know what you're doing :))

Any suggestions on how I can code this?

Thanks,
Jack
 

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
In stead of a message box you could use a userform.
There you can use both tekst and pictures.
Just make a pictuer of the smiley...

At the bottom of it you can place the same buttons as in a messagebox...

(Unless you don't understand what I mean ;))
 
Last edited:
Upvote 0
Hi de ware

I've got a simple button click that unhides a worksheet (where I store a load of variables for use in my main macro) and I don't want an end user to see that worksheet unless they're sure they know what they're doing. So using a MsgBox with vbCritical to warn them before unhiding but no need for a vbQuestion.

At this stage, I'm happy enough using a MsgBox but thanks for the suggestion!

Jack
 
Upvote 0

Forum statistics

Threads
1,214,973
Messages
6,122,534
Members
449,088
Latest member
RandomExceller01

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