mikerickson
MrExcel MVP
- Joined
- Jan 15, 2007
- Messages
- 24,355
For a card playing game, I'm trying to put a Clubs symbol in a user form Label. (A Clubs symbol looks like a 3 leaf clover).
So I filled some cells with =CHAR(ROW()), tried different fonts, and found that =CHAR(167) with the Symbol font gives me what I want.
But when I ran this in the user form code module
, I got a capital beta, ß.
As a check, I created a rectangle in a worksheet, ran this
And got a doubled downward arrow. (Which, when copy pasted into a cell became the desired Club symbol)
I don't understand why this his happening.
Does anybody have any thoughts?
Does anybody know some other way to put the Club symbol (and hearts, spades, diamonds) into a user form label?
So I filled some cells with =CHAR(ROW()), tried different fonts, and found that =CHAR(167) with the Symbol font gives me what I want.
Code:
With Range("R2")
.Font.Name = "Symbol"
.Value = Chr(167)
End With
But when I ran this in the user form code module
Code:
Private Sub UserForm_Click()
With Label1
.Font.Name = "Symbol"
.Caption = Chr(167)
MsgBox .Font.Name: Rem returned "Symbol"
End With
End Sub
As a check, I created a rectangle in a worksheet, ran this
Code:
With ActiveSheet.Shapes(1)
.TextFrame.Characters.Font.Name = "Symbol"
.TextFrame.Characters.Text = Chr(167)
MsgBox .TextFrame.Characters.Font.Name: Rem returned Symbol
End With
I don't understand why this his happening.
Does anybody have any thoughts?
Does anybody know some other way to put the Club symbol (and hearts, spades, diamonds) into a user form label?
Last edited: