Merhaba Arkadaşlar;
Aşağıdaki kod 1 veri (örneğin "Ilk") aramasına göre normal çalışıyor. Ama 2 veri arayınca çalışmadı. Hata nerede olabilir ?
Option Explicit
Sub Test()
Dim Ilk As Range, Son As Range
Set Ilk = Range("A:A").Find(What:="Ilk_Veri", LookAt:=xlWhole)
Set Son = Range("A:A").Find(What:="Son_Veri", LookAt:=xlWhole)
If Not Ilk Is Nothing Then
Range(Cells(Ilk, 2), Cells(Son.Row, 4)).Select
End If
End Sub
Aşağıdaki kod 1 veri (örneğin "Ilk") aramasına göre normal çalışıyor. Ama 2 veri arayınca çalışmadı. Hata nerede olabilir ?
Option Explicit
Sub Test()
Dim Ilk As Range, Son As Range
Set Ilk = Range("A:A").Find(What:="Ilk_Veri", LookAt:=xlWhole)
Set Son = Range("A:A").Find(What:="Son_Veri", LookAt:=xlWhole)
If Not Ilk Is Nothing Then
Range(Cells(Ilk, 2), Cells(Son.Row, 4)).Select
End If
End Sub
