Value VBA read from file different as declared value

74 views Asked by At

My file write VBA code for read sheet name Thailand language.

A module VBA, I declare a variable SHEET_NAME_1 = " การคำนวณราคา", it corresponding sheet name " การคำนวณราคา". But when run VBA code, SHEET_NAME_1 gets value is " 。メテ、モケヌウテメ、メ". I tried change format font to Thai enter image description here

But it still receive value look like Japanese value.

I tried change region to Thailand too enter image description here

Because value receive from code different as sheet name so error happened

enter image description here

How can resolve it?

1

There are 1 answers

2
Aldert On

I put it in the answer but I am not sure if this is going to help you. In excel, click on files, below you will find options. Click Language. Can it be your settings here are not for Tailand?

enter image description here