DOSYA İndirmek/Yüklemek için ÜCRETLİ ALTIN ÜYELİK Gereklidir!
Altın Üyelik Hakkında Bilgi
Private Sub CommandButton1_Click()
Dim s2 As Worksheet
Dim i As Long
Dim j As Integer
Dim Sut As Integer
Dim Sat As Long
Dim Hucre As Range
Set s2 = Sheets("Sayfa2")
Sut = [IV1].End(1).Column
For j = 1 To Sut
Sat = 0
For Each Hucre In Columns(j).SpecialCells(xlCellTypeConstants, 23)
If Hucre.Interior.ColorIndex <> xlNone Then
Sat = Sat + 1
s2.Cells(Sat, j) = Hucre
End If
Next Hucre
Next j
End Sub
Option Explicit
Private Sub CommandButton1_Click()
Dim S1 As Worksheet, j As Integer, Sat As Long, Hucre As Range
Set S1 = Sheets("Sayfa2")
For Each Hucre In Range("A2:AA" & [A65536].End(3).Row)
If Hucre.Interior.ColorIndex <> xlNone Then
j = Hucre.Column
Sat = S1.Cells(65536, j).End(3).Row + 1
S1.Cells(Sat, j) = Hucre.Value
End If
Next Hucre
S1.Cells.EntireColumn.AutoFit
Set S1 = Nothing
End Sub
Option Explicit
Private Sub CommandButton1_Click()
Dim S1 As Worksheet, j As Integer, Sat As Long, Hucre As Range
Set S1 = Sheets("Sayfa2")
For Each Hucre In Range("A2:AA" & [A65536].End(3).Row)
If Hucre.Interior.ColorIndex = 6 Then
j = Hucre.Column
Sat = S1.Cells(65536, j).End(3).Row + 1
S1.Cells(Sat, j) = Hucre.Value
End If
Next Hucre
S1.Cells.EntireColumn.AutoFit
Set S1 = Nothing
End Sub
Private Sub CommandButton2_Click()
Dim S1 As Worksheet, j As Integer, Sat As Long, Hucre As Range
Set S1 = Sheets("Sayfa3")
For Each Hucre In Range("A2:AA" & [A65536].End(3).Row)
If Hucre.Interior.ColorIndex = 8 Then
j = Hucre.Column
Sat = S1.Cells(65536, j).End(3).Row + 1
S1.Cells(Sat, j) = Hucre.Value
End If
Next Hucre
S1.Cells.EntireColumn.AutoFit
Set S1 = Nothing
End Sub