如何使用VBA在Excel中获取用户的语言? [英] How to get the user's language in Excel with VBA?

查看:35
本文介绍了如何使用VBA在Excel中获取用户的语言?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要通过VBA在Excel中获得用户的语言,因为Excel不会自动转换数据透视表并且我正在使用 VBA 在数据透视表中进行搜索.

I need to get the user's language in Excel through VBA, as far as Excel does not automatically translate Pivot tables and I am searching within a Pivot with VBA.

仅发现德语中的枢轴是这样的:

Just found out that in German the Pivot looks like this:

在英语中是这样的:

我可以考虑一个选项,在Excel中编写一个 = VLOOKUP()公式,并检查单词是否实际上是"Vlookup".还是它们是 = SVERWEIS(),然后根据结果确定是德语还是英语.

I can think about an option, writing a =VLOOKUP() formula in Excel and checking whether the words are actually "Vlookup" or whether they are =SVERWEIS() and based on the result decide whether it is German or English.

无论如何,这看起来太丑陋".有更好的主意吗?

Anyway, this looks too "ugly". Are there any better ideas?

推荐答案

另一种选择是检查 查看全文

登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆