- Katılım
- 19 Şubat 2007
- Mesajlar
- 630
- Excel Vers. ve Dili
- Ofis 365 Tr- 64 Bit
DOSYA İndirmek/Yüklemek için ÜCRETLİ ALTIN ÜYELİK Gereklidir!
Altın Üyelik Hakkında Bilgi
[FONT="Arial Narrow"]Sub GRUP_SIRALA_BRN()
Application.ScreenUpdating = False
brn = Cells(65536, 8).End(3).Row
With Range("I7:I" & brn)
.Formula = "=IF(OR(A7=0,A7=""""),I6,A7)" ': .Value = .Value
End With
Range("A6:I" & brn).Sort Key1:=[I6], Order1:=xlAscending, Header:=xlGuess
Columns("I:I").ClearContents
Range("B1").Select
Application.ScreenUpdating = True
MsgBox "Sıralama Tamam"
End Sub[/FONT]
Sub sirala()
ZBasla = TimeValue(Now)
zaman = Timer
sut1 = "a" 'başlangıç sutün
sut2 = "b" 'Taranacak sutün
sut3 = "K" 'yardımcı sutün
sat1 = 7 'başlangıç satır
Set Sh1 = Sheets(ActiveSheet.Name) 'sayfa adı
son = Sh1.Cells(Rows.Count, sut1).End(3).Row 'son dolu satır
Sh1.Range(Sh1.Cells(sat1, sut3), Sh1.Cells(son, sut3)).Clear
Range(sut2 & sat1 & ":" & sut2 & son).Copy
Cells(7, sut3).PasteSpecial Paste:=2
Application.CutCopyMode = False
For j = sat1 To son
deg2 = Split(Sh1.Cells(j, sut2), "KG")
If UBound(deg2) > 0 Then
deg3 = deg2(0) & "KG" & Format(deg2(1), "000")
End If
Sh1.Cells(j, sut2) = deg3 '"h" & Format(deg3, "0000000000000")
Next j
Range("A7:" & sut3 & son).Sort Key1:=Cells(7, sut2), Order1:=xlAscending, Header:=xlGuess, _
OrderCustom:=1, MatchCase:=False, Orientation:=xlTopToBottom, DataOption1:=xlSortNormal
Range(sut3 & sat1 & ":" & sut3 & son).Copy
Cells(7, sut2).PasteSpecial Paste:=2
Application.CutCopyMode = False
Range("a1").Select
Sh1.Range(Sh1.Cells(sat1, sut3), Sh1.Cells(son, sut3)).Clear
zBitis = TimeValue(Now)
MsgBox "İşleminiz tamamlanmıştır." & Chr(10) & _
"İşlem süresi ; " & Format(Timer - zaman, "0.00") & Chr(10) & _
"Geçen Süre " & CDate(zBitis - ZBasla), vbInformation, " Sonuç Penceresi"
End Sub
.Formula = "=IF(OR(A7=0,A7=""""),I6,[B][COLOR="Red"]A[/COLOR][/B]7)": .Value = .Value
Sub Makro1()
With Application
.ScreenUpdating = False
.EnableEvents = False
.DisplayAlerts = False
.Calculation = xlManual
End With
ZBasla = TimeValue(Now)
zaman = Timer
sut1 = "a" 'başlangıç sutün
sut4 = "L" 'yardımcı sutün
sat1 = 7 'başlangıç satır
aranan = "2000000"
Set Sh1 = Sheets(ActiveSheet.Name) 'sayfa adı
son = Sh1.Cells(Rows.Count, sut1).End(3).Row 'son dolu satır
For j = sat1 To son
deg2 = Split(Sh1.Cells(j, sut1), aranan)
If UBound(deg2) > 0 Then
deg3 = deg2(1)
End If
Sh1.Cells(j, sut4).Value = Val(aranan & deg3) * 1 '"h" & Format(deg3, "0000000000000")
Sh1.Cells(j, sut4).NumberFormat = "0"
Next j
For j = son To sat1 Step -1
If Left(Sh1.Cells(j, sut4).Value, Len(aranan)) <> aranan Then
Rows(j).Delete Shift:=xlUp
End If
Next j
MsgBox "İşleminiz tamamlanmıştır." & Chr(10) & _
"İşlem süresi ; " & Format(Timer - zaman, "0.00") & Chr(10) & _
"Geçen Süre " & CDate(zBitis - ZBasla), vbInformation, " Sonuç Penceresi"
With Application
.ScreenUpdating = True
.EnableEvents = True
.DisplayAlerts = True
.Calculation = xlAutomatic
End With
End Sub
Sub Makro1()
With Application
.ScreenUpdating = False
.EnableEvents = False
.DisplayAlerts = False
.Calculation = xlManual
End With
ZBasla = TimeValue(Now)
zaman = Timer
sut1 = "a" 'başlangıç sutün
sut4 = "L" 'yardımcı sutün
sat1 = 7 'başlangıç satır
aranan = "2000000"
Set Sh1 = Sheets(ActiveSheet.Name) 'sayfa adı
son = Sh1.Cells(Rows.Count, sut1).End(3).Row 'son dolu satır
veri2 = "hhhhhhhhhhhh"
For j = sat1 To son
If Len(Sh1.Cells(j, sut1).Value) > 1 Then
veri1 = Sh1.Cells(j, sut1)
veri2 = veri1
End If
Sh1.Cells(j, sut4).Value = veri2
Next j
For j = son To sat1 Step -1
If Left(Sh1.Cells(j, sut4).Value, Len(aranan)) <> aranan Then
Rows(j).Delete Shift:=xlUp
End If
Next j
MsgBox "İşleminiz tamamlanmıştır." & Chr(10) & _
"İşlem süresi ; " & Format(Timer - zaman, "0.00") & Chr(10) & _
"Geçen Süre " & CDate(zBitis - ZBasla), vbInformation, " Sonuç Penceresi"
With Application
.ScreenUpdating = True
.EnableEvents = True
.DisplayAlerts = True
.Calculation = xlAutomatic
End With
End Sub