- Katılım
- 18 Kasım 2012
- Mesajlar
- 33
- Excel Vers. ve Dili
- Excel 2010 - İngilizce
Düzeltme:
Merhaba,
Aşağıdaki kodun işaretli bölümüne E sütundaki değerler 10, 15, 22, 73 veya 79 ise ifadesini nasıl ekleyebilirim?
Merhaba,
Aşağıdaki kodun işaretli bölümüne E sütundaki değerler 10, 15, 22, 73 veya 79 ise ifadesini nasıl ekleyebilirim?
Kod:
Sub Listele()
Dim Sd As Worksheet, i As Byte, c As Range, Adr As Variant, sat As Long
Set Sd = Sheets("Sheet1")
Application.ScreenUpdating = False
Sheets("Sheet2").Select
Range("A2:B" & Rows.Count).Clear
For i = 1 To 10
sat = 2
With Sd.Range("I:I")
Set c = .Find(Cells(1, i), , xlValues, xlWhole)
If Not c Is Nothing Then
Adr = c.Address
Do
If Sd.Cells(c.Row, "C") & "|" & Sd.Cells(c.Row, "D") = "3|2013" Then
Cells(sat, i) = Sd.Cells(c.Row, "A")
sat = sat + 1
End If
Set c = .FindNext(c)
Loop While Not c Is Nothing And c.Address <> Adr
End If
End With
Next i
For j = 11 To 11
sat = 2
With Sd.Range("F:F")
Set c = .Find(Cells(1, j), , xlValues, xlWhole)
If Not c Is Nothing Then
Adr = c.Address
Do
[COLOR="Red"] If Sd.Cells(c.Row, "C") & "|" & Sd.Cells(c.Row, "D") & "|" & Sd.Cells(c.Row, "E") = "3|2013|1" Then[/COLOR]
Cells(sat, i) = Sd.Cells(c.Row, "A")
sat = sat + 1
End If
Set c = .FindNext(c)
Loop While Not c Is Nothing And c.Address <> Adr
End If
End With
Next j
Son düzenleme:
