Read Japanese Character's from Cell

Halley yenn

New Member
Joined
Mar 17, 2021
Messages
32
Office Version
  1. 365
Platform
  1. Windows
Hey Folks,

I have a excel with cell values in both English and Japanese (for ex: Name/名前). I want to declare this in my macro code as below :

If (WB.Range("A" & i).Value) = "Name/名前" And WB.Range("B" & i).Value) <> "" Then
validrecord = "true"
But it is failing to read the Japanese characters and showing like("Name/??") .

Any help is much appreciated.

Regards,
Halley
 

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.
Hi,​
you should use the ChrW statement to enter any Japanese character under VBA.​
Or you can check just the beginning of the cell for the occidental characters with the Like operator : If (WB.Cells(i, 1).Text like "Name/*" …​
 
Upvote 0
Solution
Hi,​
you should use the ChrW statement to enter any Japanese character under VBA.​
Or you can check just the beginning of the cell for the occidental characters with the Like operator : If (WB.Cells(i, 1).Text like "Name/*" …​
Thanks Marc:).
 
Upvote 0

Forum statistics

Threads
1,215,025
Messages
6,122,732
Members
449,093
Latest member
Mnur

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