VBA string - 添加换行符 \n 等价物不起作用

VBA string - adding a newline of \n equivalent is not working

我有以下 VBA 代码摘录,

series.Points(2).DataLabel.Text = "A:" & t1 & vbNewLine & "B:" & t2 

我期待以下输出,

A:1
B:2

但我得到的是以下内容,

A:1

B:2

我哪里做错了?

试试这个:

series.Points(2).DataLabel.Text = "A:" & t1 & chr(13) & "B:" & t2