M
Mark
Anyone know where I am going wrong with this code:
Dim i as byte
Dim Fund1 As String
Dim Fund2 As String
For i = 1 to 2
"Fund" & i = Sheets("S1").Cells(1, i + 1).Value '(which is a string)
Next i
I reckon it should work fine but am obviusly mising something obvious as it
doesn't like the referance to the string variable concatenated from the
string and number: "Fund" & i but I don't know why it doesn't like it.
Apologies I am sure it must be obvious but if someone could point it out I
would be most grateful.
Thanks, Mark
Dim i as byte
Dim Fund1 As String
Dim Fund2 As String
For i = 1 to 2
"Fund" & i = Sheets("S1").Cells(1, i + 1).Value '(which is a string)
Next i
I reckon it should work fine but am obviusly mising something obvious as it
doesn't like the referance to the string variable concatenated from the
string and number: "Fund" & i but I don't know why it doesn't like it.
Apologies I am sure it must be obvious but if someone could point it out I
would be most grateful.
Thanks, Mark