USE SomeVFPTable SELECT SomeVFPTable nTotRecords = RECCOUNT() oWord = CREATEOBJECT("Word.Application") oDocument = oWord.Documents.OPEN("C:\test.doc") oRange = oWord.ActiveDocument.RANGE(0,0) oRange.SELECT oTable = oDocument.TABLES.ADD(oRange,nTotRecords,2) nCounter = 1 SCAN oTable.Cell(nCounter,1).RANGE.InsertAfter(SomeVFPTable.SomeVFPField) oTable.Cell(nCounter,2).RANGE.InsertAfter(SomeVFPTable.SomeVFPField2) nCounter = nCounter + 1 ENDSCANAll of this works well, but in some circumstances, I need to insert a second MS Word table below the original table.
oRange = oWord.ActiveDocument.RANGE(0,0) oRange.SELECTHow would I position the cursor one line below the last record of the first MS Word table? I've tried using the value of nCounter (from above) once the first MS Word table has been created, but no matter what I do, the second MS Word table always ends up being created in Cell 1,1 of the first MS Word table.