A family of Microsoft word processing software products for creating web, email, and print documents.
The only way this makes sense in Word is if you're dealing with a table; there is no equivalent for plain text.
In Word, you would address the cells directly rather than by Offset, by using the Table.Cell(row,column) property. Of course, you could do arithmetic on the row and column values if you wanted to.
Sub TestWord()
Dim tbl As Table
Dim i As Integer
Dim rowNum As Integer
If ActiveDocument.Tables.Count > 0 Then
Set tbl = ActiveDocument.Tables(1)
With tbl
If .Columns.Count < 2 Then .Columns.Add
For i = 1 To 10
If .Rows.Count < i Then .Rows.Add
.Cell(Row:=i, Column:=1).Range.Text = "xxx"
.Cell(Row:=i, Column:=2).Range.Text = "yyy"
Next i
End With
Else
MsgBox "No table found in this document.", , "Error"
End If
End Sub