声明图表标题字体名称

我正在格式化一个图表,这些声明都可以正常工作,除了最后一个。 什么是正确的forms?

ActiveChart.ChartTitle.Select ActiveChart.ChartTitle.Text = "History of IMS Transaction 'SPTVMS02'" ActiveChart.ChartTitle.Font.Size = 20 ActiveChart.ChartTitle.Font.Bold = False ActiveChart.ChartTitle.Font.Color = RGB(110, 10, 155) ***ActiveChart.ChartTitle.Font.Name = 'Calibri'*** 

你应该在字体名称周围加双引号而不是单引号:

  ActiveChart.ChartTitle.Font.Name = "Calibri"