Code: Alles auswählen
' List friendly names of Unicode characters
Public Enum eUnicodeConst
Doppeltilde
WeiteresZeichen
'....
End Enum
'---------------------------------------------------------------------------------------
' thanks to: Adam Walle @stackoverflow
'---------------------------------------------------------------------------------------
'
Public Function GetUnicode(strText As eUnicodeConst) As String
Select Case strText
Case Doppeltilde
GetUnicode = ChrW(7668)
Case WeiteresZeichen
'GetUnicode= ChrW(????)
End Select
End Function
'how to use?
'just a simple testing
Sub TestGetUnicode()
Debug.Print GetUnicode(Doppeltilde)
End Sub
lg