- Katılım
- 4 Mart 2020
- Mesajlar
- 40
- Excel Vers. ve Dili
- OFFİCE 2016, VBA
- Altın Üyelik Bitiş Tarihi
- 06-03-2021
DOSYA İndirmek/Yüklemek için ÜCRETLİ ALTIN ÜYELİK Gereklidir!
Altın Üyelik Hakkında Bilgi
Sub sayfalar()
Sheets(1).Copy After:=Sheets(Sheets.Count)
Sheets(Sheets.Count).Range("A15:AR" & Rows.Count).ClearContents
For i = 1 To Sheets.Count
If Sheets(i).Name <> Sheets(Sheets.Count).Name Then
son = Sheets(i).Cells(Rows.Count, "E").End(3).Row
yeni = WorksheetFunction.Max(15, Sheets(Sheets.Count).Cells(Rows.Count, "E").End(3).Row + 1)
Sheets(i).Range("A15:AQ" & son).Copy Sheets(Sheets.Count).Cells(yeni, "A")
End If
Next
End Sub
Sub UygunEkle()
Application.ScreenUpdating = False
Dim strDocument, Dosyasonu, Kitapadi As String
Kitapadi = Application.ActiveWorkbook.Name
strDocument = Application.GetOpenFilename("xls Files,*.xls,All Files,*.*", 1, "Open File", , False)
If Len(strDocument) < 6 Then Exit Sub
Dosyasonu = Right(strDocument, Len(strDocument) - InStrRev(strDocument, "\"))
ActiveWorkbook.FollowHyperlink strDocument
Range("a1").Select
If Range("M15").Value <> "MALATYA" Then
MsgBox ("Lütfen doğru liste seçiniz..."), vbCritical, "Hatalı Liste..."
Else
Sheets(1).Copy After:=Sheets(Sheets.Count)
Sheets(Sheets.Count).Range("A15:AR" & Rows.Count).ClearContents
For i = 1 To Sheets.Count
If Sheets(i).Name <> Sheets(Sheets.Count).Name Then
son = Sheets(i).Cells(Rows.Count, "E").End(3).Row
yeni = WorksheetFunction.Max(15, Sheets(Sheets.Count).Cells(Rows.Count, "E").End(3).Row + 1)
Sheets(i).Range("A15:AQ" & son).Copy Sheets(Sheets.Count).Cells(yeni, "A")
End If
Next
Cells.Select
Selection.UnMerge
Range("O18").Select
Columns("H:H").Select
Selection.Copy
Columns("AS:AS").Select
ActiveSheet.Paste
Columns("AE:AE").Select
Selection.Copy
Columns("AT:AT").Select
ActiveSheet.Paste
Range("A7").Select
Rows("15:6000").Select
Selection.RowHeight = 15
Selection.ColumnWidth = 15
Columns("A:AQ").Select
Range("AQ1").Activate
Selection.Delete
Range("A1").Select
Columns("B:C").Select
Selection.AutoFilter
ActiveSheet.Range("$B$1:$C$6000").AutoFilter Field:=2, Criteria1:="Uygun"
Columns("B:B").Select
Selection.Copy
Sheets.Add After:=Sheets(Sheets.Count)
Columns("A:A").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Columns("A:A").Select
Selection.Copy
Workbooks(Kitapadi).Activate
Windows("Uygunlar.xlsx").Activate
Columns("A:A").Select
ActiveSheet.Paste
Windows("İşletme_Raporu.xls").Activate
Application.DisplayAlerts = False
Workbooks(Dosyasonu).Close savechanges:=False
Application.DisplayAlerts = True
Windows("Uygunlar.xlsx").Activate
Range("O6").Select
Worksheets("Uygunlar").Visible = xlSheetVeryHidden
MsgBox ("Uygun olan numaralar Başarıyla Yüklendi"), vbInformation
Application.ScreenUpdating = True
End If
End Sub
Sub UygunEkle()
Application.ScreenUpdating = False
Dim strDocument, Dosyasonu, Kitapadi As String
Kitapadi = Application.ActiveWorkbook.Name
strDocument = Application.GetOpenFilename("xls Files,*.xls,All Files,*.*", 1, "Open File", , False)
If Len(strDocument) < 6 Then Exit Sub
Dosyasonu = Right(strDocument, Len(strDocument) - InStrRev(strDocument, "\"))
ActiveWorkbook.FollowHyperlink strDocument
Range("a1").Select
If Range("M15").Value <> "MALATYA" Then
MsgBox ("Lütfen doğru liste seçiniz..."), vbCritical, "Hatalı Liste..."
Else
Sheets(1).Copy After:=Sheets(Sheets.Count)
Sheets(Sheets.Count).Range("A15:AR" & Rows.Count).ClearContents
For i = 1 To Sheets.Count
If Sheets(i).Name <> Sheets(Sheets.Count).Name Then
son = Sheets(i).Cells(Rows.Count, "E").End(3).Row
yeni = WorksheetFunction.Max(15, Sheets(Sheets.Count).Cells(Rows.Count, "E").End(3).Row + 1)
Sheets(i).Range("A15:AQ" & son).Copy Sheets(Sheets.Count).Cells(yeni, "A")
End If
Next
Cells.Select
Selection.UnMerge
Range("O18").Select
Columns("H:H").Select
Selection.Copy
Columns("AS:AS").Select
ActiveSheet.Paste
Columns("AE:AE").Select
Selection.Copy
Columns("AT:AT").Select
ActiveSheet.Paste
Range("A7").Select
Rows("15:6000").Select
Selection.RowHeight = 15
Selection.ColumnWidth = 15
Columns("A:AQ").Select
Range("AQ1").Activate
Selection.Delete
Range("A1").Select
Columns("B:C").Select
Selection.AutoFilter
ActiveSheet.Range("$B$1:$C$6000").AutoFilter Field:=2, Criteria1:="Uygun"
Columns("B:B").Select
Selection.Copy
Sheets.Add After:=Sheets(Sheets.Count)
Columns("A:A").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Columns("A:A").Select
Selection.Copy
Workbooks(Kitapadi).Activate
Windows("Uygunlar.xlsx").Activate
Columns("A:A").Select
ActiveSheet.Paste
Windows("İşletme_Raporu.xls").Activate
Application.DisplayAlerts = False
Workbooks(Dosyasonu).Close savechanges:=False
Application.DisplayAlerts = True
Windows("Uygunlar.xlsx").Activate
Range("O6").Select
Application.ScreenUpdating = True
MsgBox ("Uygun olan numaralar Başarıyla Yüklendi"), vbInformation
End If
End Sub