VBA字符串数组语法?

时间:2018-11-05 22:59:21

标签: vba ms-word word-vba

Dim Subjects = New String() {"Health Care", "Tax", "Trade", "Technology and Privacy", "Energy and Natural Resources", "Oversight", "Domestic Issues", "Other"}

收到语法错误,寻找语句的结尾,但据我所知这应该是正确的语法?

1 个答案:

答案 0 :(得分:2)

Dim Subjects()
Subjects = Array("Health Care", "Tax", "Trade", "Technology and Privacy", "Energy and Natural Resources", "Oversight", "Domestic Issues", "Other")