Sil
Sil

Reputation: 39

VBA String Array Syntax?

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

Receiving a syntax error, looking for an end to the statement, but as far as I can tell this should be proper syntax?

Upvotes: 0

Views: 105

Answers (1)

macropod
macropod

Reputation: 13505

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

Upvotes: 2

Related Questions