Sub SonEndeksiYaz
Dim Kitap
Dim Sayfa1, Mayis
Dim KuyuNo, Kuyular
Dim Satir
Kitap=ThisComponent
Sayfa1=Kitap.Sheets(0)
Mayis=Kitap.Sheets(1)
KuyuNo=Sayfa1.getCellRangeByName("C3").Value
For Satir=17 To 106
Kuyular=Mayis.getCellByPosition(0,Satir).Value
If KuyuNo=Kuyular Then
SonEndeks=Mayis.getCellByPosition(4,Satir)
SonEndeks=Sayfa1.getCellRangeByName("B3").Value
End If
Next Satir
End Sub
Kayıtlı kullanıcılar: Google [Bot]