Hello,
I have a simple For loop in a Word Macro
For i = 1 To count.Value
rnga = "A" + Str(i)
rngb = "B" + Str(i)
oWbk.Sheets(1).Range(rnga).formulaR1C1 = myarray(0, i)
oWbk.Sheets(1).Range(rngb).formulaR1C1 = myarray(1, i)
Next i
My only problem is Str(i) returns the value of i as a string but it includes a space before the number so it looks like A_1 - where _ is a space.
Any suggestions?
Thanks in advance,
NoChoice
I have a simple For loop in a Word Macro
For i = 1 To count.Value
rnga = "A" + Str(i)
rngb = "B" + Str(i)
oWbk.Sheets(1).Range(rnga).formulaR1C1 = myarray(0, i)
oWbk.Sheets(1).Range(rngb).formulaR1C1 = myarray(1, i)
Next i
My only problem is Str(i) returns the value of i as a string but it includes a space before the number so it looks like A_1 - where _ is a space.
Any suggestions?
Thanks in advance,
NoChoice