- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我正在编写一个函数,该函数遍历工作表的所有已使用单元格并用其他字符替换字符(文件来自提取,并且有一些不需要的字符)。
这里是 :
Sub replaceSpecialCharacters()
Dim Cell As Range
For Each Cell In ActiveSheet.UsedRange
Cell.Value = Replace(Cell.Value, "Õ", "ä")
Cell.Value = Replace(Cell.Value, "³", "ü")
Cell.Value = Replace(Cell.Value, "÷", "ö")
Cell.Value = Replace(Cell.Value, Chr(111), "Ä")
Cell.Value = Replace(Cell.Value, Chr(220), "Ü")
Cell.Value = Replace(Cell.Value, "Í", "Ö")
Cell.Value = Replace(Cell.Value, "Ó", "à")
Cell.Value = Replace(Cell.Value, "Ú", "é")
Cell.Value = Replace(Cell.Value, "Þ", "è")
Cell.Value = Replace(Cell.Value, "Ô", "â")
Cell.Value = Replace(Cell.Value, "¶", "ô")
Cell.Value = Replace(Cell.Value, Chr(194), "Â")
Cell.Value = Replace(Cell.Value, Chr(200), "È")
Cell.Value = Replace(Cell.Value, Chr(202), "Ê")
Cell.Value = Replace(Cell.Value, "Ù", "œ")
Next
End Sub
最佳答案
下面的代码会将 A1 的登录代码放入 A2
Cells(2,1).Value = AscW(Cells(1,1).Value)
对于▄,这将是 9604。
Cell.Value = Replace(Cell.Value, ChrW(9604), "Â")
It is important to understand that VBA uses the UTF-16 encoding ofthe Unicode character set. AscW and ChrW deal with one UTF-16 codeunit.
(Asc and Chr cause transcoding between UTF-16 and the user'sANSI character encoding at the time the code executes, not ASCII.)
关于vba - 如何替换 Excel 工作表中的方框字符?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48945981/
用例 在圆 Angular 方框中显示用户上传的照片。该图像将具有横向纵横比,但需要将其裁剪为正方形以适合容器内部。我们决定只显示照片的右侧(使照片的左侧不再可见)。 假设如下 照片无法预处理,我正在
为什么要使用滤波 消除图像中的噪声成分叫作图像的平滑化或滤波操作。信号或图像的能量大部分集中在幅度谱的低频和中频段是很常见的,而在较高频段,感兴趣的信息经常被噪声淹没。因此一个能降低高频成分幅度的
如何在vis js中设置内部可以有标签的形状的大小?例如 代码1: shape: 'circle', color: { border: 'black',
在我的 JLabel/JButton 组件等上,我使用 HTML 来格式化文本。这对于除古吉拉特语之外的所有语言都非常有效。 我使用普通的 ASCII 字母来编码古吉拉特语字母,例如: \u0aae\
我是一名优秀的程序员,十分优秀!