DOSYA İndirmek/Yüklemek için ÜCRETLİ ALTIN ÜYELİK Gereklidir!
Altın Üyelik Hakkında Bilgi
Option Compare Text
Private Sub Worksheet_Change(ByVal Target As Range)
If Intersect(Target, [A1]) Is Nothing Then Exit Sub
Target.ClearFormats
With Target.Font
If Target = "ahmet" Then
.Name = "Tahoma"
.Size = 17
.Bold = True
ElseIf Target = "mehmet" Then
.Name = "Arial"
.Size = 20
.Italic = True
End If
End With
End Sub
Bunu nasıl a sütununa yayarız
If Intersect(Target, [[COLOR=red]A:A[/COLOR]]) Is Nothing Then Exit Sub
5-6 tane değişik kelime için yaparız?
ElseIf Target = "mehmet" Then
.Name = "Jean Pierre"
.Name = "Dragon"
.Name = "Tiffany Lt BT"
.Name = "Times New Roman"
Option Compare Text
Private Sub Worksheet_Change(ByVal Target As Range)
If Intersect(Target, [R:R]) Is Nothing Then Exit Sub
On Error GoTo sil
Target.ClearFormats
With Target.Font
If Target = "Jean Pierre" Then
.Name = "[COLOR=blue]Arial[/COLOR]"
.Size = 15
.Bold = False
ElseIf Target = "Cousin's" Then
.Name = "[COLOR=blue]Cambria[/COLOR]"
.Size = 15
.Bold = False
ElseIf Target = "Jean Paul" Then
.Name = "[COLOR=blue]Comic Sans MS[/COLOR]"
.Size = 14
.Bold = True
ElseIf Target = "Novyo" Then
.Name = "[COLOR=blue]Times New Roman[/COLOR]"
.Size = 15
.Bold = True
End If
End With
Exit Sub
sil:
Application.EnableEvents = False
Selection.Clear
Application.EnableEvents = True
End Sub
bu bir denemeOption Compare Text
Private Sub Worksheet_Change(ByVal Target As Range)
If Intersect(Target, [R:R]) Is Nothing Then Exit Sub
Target.ClearFormats
With Target.Font
If Target = "Jean Pierre" Then
.Name = "Jean Pierre"
.Size = 15
.Bold = False
ElseIf Target = "Cousin's" Then
.Name = "Dragon"
.Size = 15
.Bold = False
ElseIf Target = "Jean Paul" Then
.Name = "Tiffany Lt BT"
.Size = 14
.Bold = True
ElseIf Target = "Novyo" Then
.Name = "Times New Roman"
.Size = 15
.Bold = True
End If
End With
End Sub
run time error "28"
out of stack space
debug'a basınca
If Intersect(Target, [R:R]) Is Nothing Then
sarı ile boyanmış gözüküyor...