is it possible to put a unicode character in the codepane in Excel 2013?
Like this:
Select Case Work(str)
Case "◊ Engineering", "◊ Woodworking", "◊ Technician"
'Do Something
End Select
is it possible to put a unicode character in the codepane in Excel 2013?
Like this:
Select Case Work(str)
Case "◊ Engineering", "◊ Woodworking", "◊ Technician"
'Do Something
End Select
You can use the ChrW
function for that:
Select Case Work(str)
Case ChrW(9674) & " Engineering", ChrW(9674) & " Woodworking", ChrW(9674) & " Technician"
'Do Something
End Select
you can test this e.g. as follows:
Sheet1.[A1].Value = ChrW(9674)
This will put your character in cell A1
of Sheet1
You can use Chr or ChrW Functions.
The valid range for Chr is 0 through 255, and the valid range for ChrW is -32768 through 65535.
Example:
ChrW(9608)
or
ChrW(&H2588)
The &H preface says that 2588 is a hexadecimal number, which is what you find looking at charmap.