- Katılım
- 17 Nisan 2013
- Mesajlar
- 101
- Excel Vers. ve Dili
- 2007 Microsoft Office Türkçe
DOSYA İndirmek/Yüklemek için ÜCRETLİ ALTIN ÜYELİK Gereklidir!
Altın Üyelik Hakkında Bilgi
Sub aktif_pasif_al_59(ByVal kriter As String)
Dim sh As Worksheet, sat1 As Long, sat2 As Long
Set sh = Sheets("URUNDATA")
Sheets("AKTIVITEFORM").Select
sat1 = sh.Cells(Rows.Count, "P").End(xlUp).Row
sat2 = 5
If sat2 >= 5 Then Range("B5:B" & Rows.Count).ClearContents
For i = 8 To sat1
If UCase(Replace(Replace(sh.Cells(i, "P").Value, "i", "İ"), "ı", "I")) = kriter Then
Cells(sat2, "B").Value = sh.Cells(i, "B").Value
sat2 = sat2 + 1
End If
Next i
MsgBox "işlem tamamlandı." & vbLf & _
"evrengizlen@hotmail.com", vbOKOnly + vbInformation, Application.UserName
End Sub
Dosyanız ektedir.
Kod:Sub aktif_pasif_al_59(ByVal kriter As String) Dim sh As Worksheet, sat1 As Long, sat2 As Long Set sh = Sheets("URUNDATA") Sheets("AKTIVITEFORM").Select sat1 = sh.Cells(Rows.Count, "P").End(xlUp).Row sat2 = 5 If sat2 >= 5 Then Range("B5:B" & Rows.Count).ClearContents For i = 8 To sat1 If UCase(Replace(Replace(sh.Cells(i, "P").Value, "i", "İ"), "ı", "I")) = kriter Then Cells(sat2, "B").Value = sh.Cells(i, "B").Value sat2 = sat2 + 1 End If Next i MsgBox "işlem tamamlandı." & vbLf & _ "evrengizlen@hotmail.com", vbOKOnly + vbInformation, Application.UserName End Sub