Kod:
Dim i
Do Until rs2.EOF
excl.Range("A" & i).Value = DLookup("id", "tblpersonel")
excl.Range("B" & i).Value = DLookup("sicil", "tblpersonel")
excl.Range("C" & i).Value = DLookup("ad_soyad", "tblpersonel")
excl.Range("D" & i).Value = DLookup("rutbe", "tblpersonel")
excl.Range("E" & i).Value = DLookup("birim", "tblpersonel")
rs2.MoveNext
i = i + 1
Loop
rs2.Close