- Katılım
- 13 Mayıs 2005
- Mesajlar
- 761
- Excel Vers. ve Dili
- 2010 Türkçe
DOSYA İndirmek/Yüklemek için ÜCRETLİ ALTIN ÜYELİK Gereklidir!
Altın Üyelik Hakkında Bilgi
For i = 2 To 100
If s1.Cells(i, "O") = "EVET" Then
s2.Cells(x, "B").Value = s1.Cells(i, "B")
x = x + 1
End If
Next i
For i = 2 To 100
If s1.Cells(i, "O") = "EVET" Then
x = x + 1
s2.Cells(x, "B").Value = s1.Cells(i, "B")
End If
Next i
Option Explicit
Sub Verileri_Aktar()
With Application
.ScreenUpdating = False
.EnableEvents = False
.DisplayAlerts = False
.Calculation = xlCalculationManual
End With
ActiveWorkbook.Unprotect
Sheets("aktar").Range("B2:B" & Rows.Count).ClearContents
With Sheets("veri")
.Unprotect "61"
.Range("$B$1:$O$" & Rows.Count).AutoFilter Field:=14, Criteria1:="EVET"
.Range("B2:B" & .Cells(.Rows.Count, 2).End(3).Row).SpecialCells(xlCellTypeVisible).Copy
Sheets("aktar").Range("B2").PasteSpecial Paste:=xlPasteValues
On Error Resume Next
.ShowAllData
On Error GoTo 0
.Protect "61", DrawingObjects:=True, Contents:=True, Scenarios:=True, AllowFiltering:=True
.EnableSelection = xlUnlockedCells
End With
ActiveWorkbook.Protect Structure:=True, Windows:=False
With Application
.ScreenUpdating = True
.EnableEvents = True
.DisplayAlerts = True
.Calculation = xlCalculationAutomatic
End With
MsgBox "Kişiler Bordroya aktarıldı...", vbInformation
End Sub