DOSYA İndirmek/Yüklemek için ÜCRETLİ ALTIN ÜYELİK Gereklidir!
Altın Üyelik Hakkında Bilgi
Sub test()
Dim s1 As Worksheet, i As Long, x As Long, son As Long
Set s1 = Sayfa1: son = s1.Range("A" & Rows.Count).End(xlUp).Row
x = 1
For i = 1 To son
If s1.Cells(i, 1).Interior.ColorIndex = xlNone Then
s1.Cells(x, 10) = s1.Cells(i, 1)
x = x + 1
End If
Next i
End Sub
bakabilir misiniz acaba?Rica ederim.![]()
Sub test()
Dim s1 As Worksheet, i As Long, x As Long, son As Long
Set s1 = Sayfa1: son = s1.Range("B" & Rows.Count).End(xlUp).Row
x = 1
For i = 1 To son
If s1.Cells(i, 2).Interior.ColorIndex = xlNone Then
s1.Cells(x, 10) = s1.Cells(i, 2)
x = x + 1
End If
Next i
End Sub
Çok teşekkürlerrB sütunu için aşağıdaki gibi olabilir..
C++:Sub test() Dim s1 As Worksheet, i As Long, x As Long, son As Long Set s1 = Sayfa1: son = s1.Range("B" & Rows.Count).End(xlUp).Row x = 1 For i = 1 To son If s1.Cells(i, 2).Interior.ColorIndex = xlNone Then s1.Cells(x, 10) = s1.Cells(i, 2) x = x + 1 End If Next i End Sub