Reading foreign text in VBA

justforgroups

New Member
Joined
Mar 10, 2010
Messages
26
Hi,
I have foreign (non-English) characters in a cell which I was reading using Sheets("data").Cells(1,1).Formula
However this returned nothing but questions marks instead of the text:e.g. ζχψωβνιθςεβφ[ςε turns into "????ί????eίf[?e"

After research I discovered I needed to set the regional settings to the foreign country and needed to use FormulaLocal: Sheets("data").Cells(1,1).FormulaLocal

Now however I'm only getting some of the foreign characters - others are appearing as question marks. e.g "?χψω???εβφ?e"

Any idea how to proceed? Thanks.
 

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand
Have you tried using Text instead of Formula?

Why are you using Formula in the first place?:)
 
Upvote 0
Sheets("data").Cells(1,1).Text gives the same problem.

using Formula because FormulaLocal is the only thing I've found that has been suggested to be able to read foreign characters using VBA.

If you have another alternative to Formula, believe me I'm all ears! :)
 
Upvote 0

Forum statistics

Threads
1,214,655
Messages
6,120,760
Members
448,991
Latest member
Hanakoro

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