- Katılım
- 4 Haziran 2008
- Mesajlar
- 798
- Excel Vers. ve Dili
- Excel 2021 TÜRKÇE
DOSYA İndirmek/Yüklemek için ÜCRETLİ ALTIN ÜYELİK Gereklidir!
Altın Üyelik Hakkında Bilgi
$D1=$E1
. . .
E sütunu kendiliğinden renkli mi yoksa
eşletirmek yaptıktan sonra hemde D hem E sütununu mu renklendirecek.
. . .
. . .E sütunu hazır yani renkli;sadece D sütunu renklendirilecek aynı isimler aynı renkte olacak.
ekteki umarım işinize yarar sarıda görünmedigi için mavi yaptım.
iyi çalışmalar.
. . .
Birde veri girişi yaptığınız andamı çalıştırmak istiyorsunuz yoksa
listeye verileri girdikten sonra butonla tüm listeyi mi kontrol edelim.
. . .
Sub kod()
Application.ScreenUpdating = False
Dim WF As WorksheetFunction: Set WF = Application.WorksheetFunction
With Range("D:D").Interior
.Pattern = xlNone
.TintAndShade = 0
.PatternTintAndShade = 0
End With
s = Cells(Rows.Count, "E").End(3).Row
For i = 4 To Cells(Rows.Count, "D").End(3).Row
If Cells(i, "D") <> "" Then
If WF.CountIf(Range("E4:E" & s), Cells(i, "D")) = 0 Then
Cells(i, "D").Interior.Color = 65535
Else
f = WF.Match(Cells(i, "D"), Range("E:E"), 0)
Cells(f, "E").Copy
Cells(i, "D").PasteSpecial Paste:=xlPasteFormats, Operation:=xlNone, _
SkipBlanks:=False, Transpose:=False
Application.CutCopyMode = False
End If
End If
Next i
Application.ScreenUpdating = True
MsgBox "B i t t i "
End Sub
. . .
Kod:Sub kod() Application.ScreenUpdating = False Dim WF As WorksheetFunction: Set WF = Application.WorksheetFunction With Range("D:D").Interior .Pattern = xlNone .TintAndShade = 0 .PatternTintAndShade = 0 End With s = Cells(Rows.Count, "E").End(3).Row For i = 4 To Cells(Rows.Count, "D").End(3).Row If Cells(i, "D") <> "" Then If WF.CountIf(Range("E4:E" & s), Cells(i, "D")) = 0 Then Cells(i, "D").Interior.Color = 65535 Else f = WF.Match(Cells(i, "D"), Range("E:E"), 0) Cells(f, "E").Copy Cells(i, "D").PasteSpecial Paste:=xlPasteFormats, Operation:=xlNone, _ SkipBlanks:=False, Transpose:=False Application.CutCopyMode = False End If End If Next i Application.ScreenUpdating = True MsgBox "B i t t i " End Sub
. . .
Veriler maksimum kac satir olabilir.
Renk kolaji yaparak satir sayisina gore dagitilabilir.
.
Sub kod()
For i = 1 To 250
Cells(i, "A").Interior.Color = i * 100000
Cells(i, "B") = i * 100000[COLOR="DarkGreen"] ' renk kodu[/COLOR]
Next i
End Sub
. . .
Örnek bir kodlama;
Kod:Sub kod() For i = 1 To 250 Cells(i, "A").Interior.Color = i * 100000 Cells(i, "B") = i * 100000[COLOR="DarkGreen"] ' renk kodu[/COLOR] Next i End Sub
. . .
[FONT="Arial Narrow"]Sub RENK()
Range("D:D").Interior.Color = xlNone: Range("D:D").Font.Color = 1
For satır = 4 To [D65536].End(3).Row
If Cells(satır, 4) = "" Then GoTo 10
hedefalan = "E4:E" & [E65536].End(3).Row
If WorksheetFunction.CountIf(Range(hedefalan), Cells(satır, 4)) = 0 Then GoTo 10
hedefsatır = WorksheetFunction.Match(Cells(satır, 4), Range(hedefalan), 0) + 3
Cells(satır, 4).Interior.Color = Cells(hedefsatır, "E").Interior.Color
Cells(satır, 4).Font.Color = Cells(hedefsatır, "E").Font.Color
10: Next
End Sub[/FONT]
Sub kod()
For i = 4 To Cells(Rows.Count, "E").End(3).Row
Cells(i, "E").Interior.Color = i * 100000
'Cells(i, "B") = i * 100000 ' renk kodu
Next i
End Sub