Hello,
I am trying to create an array so that it would look like the following: vtSecurity = "AA", "BB, "CC", "DD". But I can't make it so that both quotation marks would surround each string in the final array. This code is what I could get so far.
If UBound(sSecArray) > 0 Then
For Y = 1 To UBound(sSecArray)
If Y = 1 Then
vtSecurity = sSecArray(Y) & """"
Else
vtSecurity = vtSecurity & "," & " " & SecArray(Y) & """"
End If
Next
End If
Thank you for any ideas.
I am trying to create an array so that it would look like the following: vtSecurity = "AA", "BB, "CC", "DD". But I can't make it so that both quotation marks would surround each string in the final array. This code is what I could get so far.
If UBound(sSecArray) > 0 Then
For Y = 1 To UBound(sSecArray)
If Y = 1 Then
vtSecurity = sSecArray(Y) & """"
Else
vtSecurity = vtSecurity & "," & " " & SecArray(Y) & """"
End If
Next
End If
Thank you for any ideas.