2

My Japanese colleague created an Excel 2010 macro. When I try to edit the macro in excel, the comments have weird characters. It seems like there is a character encoding issue.

Here is some sample code:

Option Explicit

'ƒtƒ@ƒCƒ‹Ši”[ƒpƒXŽw’è iRow,Col j
'DefineXMLƒtƒ@ƒCƒ‹
Public Const P_stTempRow = 5
Public Const P_stTempCol = 3

I checked to see if there was a way to change the encoding used to interpret the source code but couldn't see any settings.

0

1 Answer 1

0

It is a character encoding issue. The original file was Japanese-localized using the encoding Shift-JIS, but the file is now being interpreted as the US and Western European default encoding of Windows-1252. I do not know a way to make Excel use another encoding for macros other than the localized default, other than to change your "Current system locale" in Windows settings to Japanese.

enter image description here

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.