JenniferMurphy
Well-known Member
- Joined
- Jul 23, 2011
- Messages
- 2,532
- Office Version
- 365
- Platform
- Windows
I need to make use of two Unicode special characters, the up arrow (&H2191) and the down arrow (&H2193).
Originally, I was using them in text string expressions like
So I tried to define global constants, but it isn't working. I first tried
But it complained about it not being a "constant expression". It seemed like a constant expression to me. I don't know what part is not constant. I then tried
But, of course, that got the same error.
Is there a way I can get the up and down arrow characters into a global constant?
Thanks
Originally, I was using them in text string expressions like
ChrW(CLng("&H2191"))
. But now I need to replicate that in multiple UDF. I'd prefer not to duplicate that code multiple times. If I ever change the characters, I will have to find all of the places and change each one.So I tried to define global constants, but it isn't working. I first tried
Public Const gMaxCode as String = ChrW(CLng("&H2191"))
But it complained about it not being a "constant expression". It seemed like a constant expression to me. I don't know what part is not constant. I then tried
Public Const gMaxCode as String = ChrW(9593)
But, of course, that got the same error.
Is there a way I can get the up and down arrow characters into a global constant?
Thanks