Excel VBA error,may be is language error, and VBA will be deleted

xue jiawei 0 Reputation points
2023-05-09T02:31:45.78+00:00

I need to work on a Japanese EXCEL to do VBA programming, and I set the area of my computer to Japan so that I can display the code that runs the workbook.

But But I found that whenever I added code to excel and then saved it, opening it again would report an error and delete my VBA.

Is there any solution except to change all macros to English names (that's too much work)

Microsoft 365 and Office Excel For business Windows
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Emi Zhang-MSFT 30,046 Reputation points Microsoft External Staff
    2023-05-09T09:57:38.3733333+00:00

    Hi,

    It is necessary to ensure that the display language of the system is Japanese as the preferred language.

    In addition, in the Office application, go to Options, Language, and check if the display language is Japanese.

    Then in the VBA editor, click on Tools- Options- Editor Format- Font to make sure it is a Japanese font.

    Try this method and let me know if you need more help, I'm glad to help you.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.