To read each cell you will need to loop through the range and
compare each cell's value with your rs' field value.
You can use the .Rows collection and iterate through the first row
using one loop and then iterate through an second nested inner
loop for the columns. .Rows(r,c) in numbers.
VB Code:
Option Explicit
'Add reference to MS Excel xx.0 Object Library
Private moApp As Excel.Application
Private Sub Command1_Click()
Dim oWB As Excel.Workbook
Dim lMaxRowNumber As Long
moApp.Visible = True
Set oWB = moApp.Workbooks.Open("D:\My Documents\Book1.xls")
'Add first new row at the very end
lMaxRowNumber = oWB.Sheets("Sheet1").Cells.SpecialCells(xlCellTypeLastCell).Row
oWB.Sheets("Sheet1").Rows(CStr(lMaxRowNumber + 1) & ":" & CStr(lMaxRowNumber + 1)).Select
Application.Selection.Insert Shift:=xlDown 'Insert a row at the selection (last row + 1)
oWB.Sheets("Sheet1").Cells(lMaxRowNumber + 1, 1).Value = "Added new row"
'Add another new row at the new very end
lMaxRowNumber = oWB.Sheets("Sheet1").Cells.SpecialCells(xlCellTypeLastCell).Row
oWB.Sheets("Sheet1").Rows(CStr(lMaxRowNumber + 1) & ":" & CStr(lMaxRowNumber + 1)).Select
Application.Selection.Insert Shift:=xlDown
oWB.Sheets("Sheet1").Cells(lMaxRowNumber + 1, 1).Value = "Added second new row"
End Sub
Private Sub Form_Load()
Set moApp = New Excel.Application
End Sub