Hi Everybody I'm trying to create an array of variables that I get from an OPC Server and put them directly into a text file without have to read from cells on a worksheet, but so far thats the only way I can get it to work. The array goes something like this.
For i = 1 to 5
Cells(7 + i, 3) = Values(i)
Next i
This works, but I would like to do something like this
For i = 1 to 5
s(i) = Values(s(i))
Next i
sStr = Now
str = sStr + s
Print #FileNum, str
Thanks in advance.
Reguards
dstrat6
For i = 1 to 5
Cells(7 + i, 3) = Values(i)
Next i
This works, but I would like to do something like this
For i = 1 to 5
s(i) = Values(s(i))
Next i
sStr = Now
str = sStr + s
Print #FileNum, str
Thanks in advance.
Reguards
dstrat6