' 使用两个双引号来转义出单个双引号Dim s AsString
s ="This string literal has an embedded "" in it."' 使用 Chr 函数 和 & 连接符Dim s AsString
s ="This string literal has an embedded "&Chr(<
Excel VBA String 数据类型字符串有两种类型:可变长度字符串和固定长度字符串。可变长度字符串最多可以包含大约 20 亿 (2^31) 个字符。固定长度的字符串可以包含1到大约 64 K (2 ^ 16) 个字符。 ' 使用两个双引号来转义出单个双引号 Dim s As String s = "This string literal has an embedded...