-
- Destek
-
-
Özel Arama
![]() |
Private Sub Worksheet_Activate()
Dim son As Long
Application.ScreenUpdating = False
son = Sheets("BORÇLAR").Range("H65").End(3).Row
For i = 3 To son
If Sheets("BORÇLAR").Range("H" & i).Interior.Color = RGB(191, 191, 191) Then
Range("B" & i + 3 & ":F" & i + 3).Interior.Color = RGB(255, 255, 0)
End If
Next i
Application.ScreenUpdating = True
End Sub
cemalabi yazdı:Yalnız şunu farkettim. BORÇLAR sayfasından rengi boşalttığım zaman diğer sayfadaki hücrelerin eski konumunu alması gerekiyor. Bunu da çözümlerseniz çok sevinirim.
Private Sub Worksheet_Activate()
Dim son As Long
Application.ScreenUpdating = False
son = Sheets("BORÇLAR").Range("H65").End(3).Row
For i = 3 To son
If Sheets("BORÇLAR").Range("H" & i).Interior.Color = RGB(191, 191, 191) Then
Range("B" & i + 3 & ":F" & i + 3).Interior.Color = RGB(255, 255, 0)
Else
Range("B" & i + 3 & ":F" & i + 3).Interior.Color = xlNone
End If
Next i
Application.ScreenUpdating = True
End Sub
Forum Kullanıcı Tanımlı Fonksiyonlar ( KTF )
Bu forumu görüntüleyenler: Kayıtlı kullanıcı yok ve 1 misafir