- Katılım
- 12 Temmuz 2006
- Mesajlar
- 206
- Excel Vers. ve Dili
- Microsoft 365 / Türkçe
DOSYA İndirmek/Yüklemek için ÜCRETLİ ALTIN ÜYELİK Gereklidir!
Altın Üyelik Hakkında Bilgi
Option Explicit
Sub BUL_YIL_ARTTIR()
Dim BUL As Range, ADRES As String
Application.FindFormat.Interior.ColorIndex = 4
Set BUL = Range("E:H").Find(What:="", SearchFormat:=True)
If Not BUL Is Nothing Then
ADRES = BUL.Address
Do
BUL.Value = DateAdd("yyyy", 1, BUL.Value)
Set BUL = Range("E:H").Find(What:="", After:=BUL, SearchFormat:=True)
Loop While Not BUL Is Nothing And BUL.Address <> ADRES
End If
MsgBox "İşleminiz tamamlanmıştır.", vbInformation
End Sub
Option Explicit
Sub BUL_YIL_ARTTIR()
Dim BUL As Range, ADRES As String
Application.FindFormat.Interior.ColorIndex = 4
Set BUL = Range("E:H").Find(What:="", SearchFormat:=True)
If Not BUL Is Nothing Then
ADRES = BUL.Address
Do
If BUL.Value >= Range("E1") And BUL.Value <= Range("F1") Then
BUL.Value = DateAdd("yyyy", 1, BUL.Value)
End If
Set BUL = Range("E:H").Find(What:="", After:=BUL, SearchFormat:=True)
Loop While Not BUL Is Nothing And BUL.Address <> ADRES
End If
MsgBox "İşleminiz tamamlanmıştır.", vbInformation
End Sub
Option Explicit
Sub YIL_ARTTIR()
Dim Veri As Range
For Each Veri In Range("E3:H1000")
If Veri.Value <> "" Then
If Veri.Value >= Range("E1") And Veri.Value <= Range("F1") Then
Veri.Value = DateAdd("yyyy", 1, Veri.Value)
End If
End If
Next
MsgBox "İşleminiz tamamlanmıştır.", vbInformation
End Sub