VBA MISSING character? Intermediate window: "? Cells(1,"A").Value => a? "

makiwara

Board Regular
Joined
Mar 8, 2018
Messages
171
Hi! I have characters which are recognized by Excel itself, however, when referring to them from the VBA editor something gets wrong.

For example if I write the expression of ? Cells(1,"A").Value into the Intermediate Window, I get "a?" so VBA can't recognize. (Latin characters)

Excel recognizes them applying a lot of font, for example Lucida Sans Unicode.

Do you have any idea, what to do? Thank you!


[TABLE="width: 64"]
<colgroup><col width="64" style="width:48pt"> </colgroup><tbody>[TR]
[TD="class: xl65, width: 64"]aʊ[/TD]
[/TR]
[TR]
[TD="class: xl65"]eɪ[/TD]
[/TR]
[TR]
[TD="class: xl65"]oʊ[/TD]
[/TR]
[TR]
[TD="class: xl65"]ɔɪ[/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
They're Unicode characters (e.g., the second character is lowercase upsilon). The VBE doesn't handle them, but VBA does in string variables. What are you trying to do?
 
Upvote 0
Shg, thank you for your reply!

I want to do some actions based on cell's value:
so
If left(cells(1,2).Value),1)=Cells(1,1).Value then 'CELLS(x,1) containing for example the characters:
[TABLE="class: cms_table, width: 64"]
<tbody>[TR]
[TD="class: cms_table_xl65, width: 64"]aʊ[/TD]
[/TR]
[TR]
[TD="class: cms_table_xl65"]eɪ[/TD]
[/TR]
[TR]
[TD="class: cms_table_xl65"]oʊ[/TD]
[/TR]
[TR]
[TD="class: cms_table_xl65"]ɔɪ[/TD]
[/TR]
</tbody>[/TABLE]

How can I make VBA understand this?

They're Unicode characters (e.g., the second character is lowercase upsilon). The VBE doesn't handle them, but VBA does in string variables. What are you trying to do?
 
Upvote 0
What happens when you try it? Show a specific example with code.
 
Upvote 0

Forum statistics

Threads
1,224,815
Messages
6,181,135
Members
453,021
Latest member
Justyna P

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