用宏替换非ASCII字符 - Ŋ和ŋ [英] Macro to replace non-ASCII characters - Ŋ and ŋ

查看:102
本文介绍了用宏替换非ASCII字符 - Ŋ和ŋ的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

VBA新手。 我无法开发一个宏来查找和替换并使用各自的代码 Ŋ来填充角色Ŋ(大写)和lower(小写)。和 ŋ。$

VBA Newbie.  I have having trouble developing a macro to find and replace and eng character Ŋ (caps) and ŋ (lower case) with their respective codes Ŋ and ŋ.

看起来很简单,但Chr功能使用ASCII。  Ŋ和 ŋ无法粘贴到VBA语法中。

It seems easy enough, but the Chr function uses ASCII.  Ŋ and ŋ can't be pasted into VBA syntax.

指导赞赏。

推荐答案

您好

尝试这种方式。 ChrW(330)表示大写字母,ChrW(331表示表示小写字母。

Try it this way. ChrW(330) for Upper case and ChrW(331) for lower case.

对于Unicode,其ChrW()

For Unicode its ChrW()


这篇关于用宏替换非ASCII字符 - Ŋ和ŋ的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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