0
如何在Excel VBA中輸入特殊字符?例如,如果我想在某些字符串中使用「●」(大的interpunct),它們都顯示爲「?」。我嘗試用VBA中的●
替換所有「●」,但它不起作用,只是在字符串中顯示●
。在Excel VBA中輸入特殊字符
如何在Excel VBA中輸入特殊字符?例如,如果我想在某些字符串中使用「●」(大的interpunct),它們都顯示爲「?」。我嘗試用VBA中的●
替換所有「●」,但它不起作用,只是在字符串中顯示●
。在Excel VBA中輸入特殊字符
參考網站 - Unicode and VBA’s ChrW() and AscW() functions
這裏子彈等強子彈的代碼。用十六進制代替長。
Sub DisplayBullet()
Cells(1, 1).Value = "This is a bullet - " & ChrW(8226)
Cells(2, 1).Value = "This is a strong bullet - " & ChrW(&H25CF)
End Sub
重要:如果您嘗試在它不工作一個MsgBox來顯示。
嘗試''這是一個強大的子彈 - 「&ChrW(9679)'。請注意,並非所有GUI組件都可以顯示unicode;立即窗口將顯示'?'。 – Jeeped