- Katılım
- 29 Kasım 2007
- Mesajlar
- 1,110
- Excel Vers. ve Dili
- excel 2007
DOSYA İndirmek/Yüklemek için ÜCRETLİ ALTIN ÜYELİK Gereklidir!
Altın Üyelik Hakkında Bilgi
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Application.ScreenUpdating = False
Dim t As Integer, sr As Integer
If Intersect(Target, [B4:B65536]) Is Nothing Then Exit Sub
Range("A2:A" & Cells(65536, "A").End(3).Row + 1).ClearContents
For t = 4 To [b65536].End(3).Row
If Not Cells(t, 2) = "" Then
sr = sr + 1
Cells(t, 1) = sr
End If
Next t
On Error GoTo Son
[A4:A65536].SpecialCells(xlCellTypeBlanks).EntireRow.Delete
Son:
Application.ScreenUpdating = True
End Sub