- Katılım
- 15 Temmuz 2012
- Mesajlar
- 2,802
- Excel Vers. ve Dili
- Ofis 2021 TR 64 Bit
Merhaba hayırlı geceler.
Aşağıdaki kodları bir başlık altında birleştirmek istiyorum, deniyorum bir türlü çalıştıramadım.
Yardımcı olur musunuz?
Aşağıdaki kodları bir başlık altında birleştirmek istiyorum, deniyorum bir türlü çalıştıramadım.
Yardımcı olur musunuz?
Kod:
[B]Private Sub Worksheet_SelectionChange(ByVal Target As Range)[/B]
For Each Item In Selection
If Mid(Item.Formula, 1, 1) = "=" Then
Cells(Target.Row, "C").Activate
End If
Next
End Sub
Kod:
[B]Private Sub Worksheet_SelectionChange(ByVal Target As Range)[/B]
If Intersect(Target, Range("B3:C1048576")) Is Nothing Then
Cells.FormatConditions.Delete
Dim Satır As Range, Sütun As Range
Set Satır = Range(Cells(ActiveCell.Row, 1), Cells(ActiveCell.Row, 3))
Set Sütun = Range(Cells(Target.Row, ActiveCell.Column), Cells(1, ActiveCell.Column))
Cells.FormatConditions.Delete
Application.ScreenUpdating = False
Application.DisplayAlerts = False
With Satır
.FormatConditions.Delete
.FormatConditions.Add Type:=xlExpression, Formula1:=1
.FormatConditions(1).Font.Bold = True
.FormatConditions(1).Interior.Color = RGB(204, 236, 255)
End With
End If
Application.ScreenUpdating = True
Application.DisplayAlerts = True
End Sub
Kod:
[B]Private Sub Worksheet_SelectionChange(ByVal Target As Range[/B])
If Intersect(Target, Range("D3:P1048576")) Is Nothing Then
For sat = 3 To Cells(Rows.Count, 1).End(3).Row
For sut = 4 To Month(Now) + 3
If Cells(sat, sut) = 0 Or Cells(sat, sut) = "" Then
Cells(sat, sut).Interior.Color = vbRed
Else
Cells(sat, sut).Interior.Color = xlNone
End If
Next
Next
End If
End Sub
