- Katılım
- 11 Nisan 2008
- Mesajlar
- 222
- Excel Vers. ve Dili
- Microsoft Office Excel 2013 / Türkçe
Üsdatlar S.A
aşağıdaki makroda K2 hücresindeki =bugün() foksiyonu tarih olarak algılamıyor sebebi ne olabilr.
Option Explicit
Private Sub Worksheet_Change(ByVal Target As Range)
Dim BUL As Range, İlk_Satır As Long, Son_Satır As Long
If Intersect(Target, Range("K2")) Is Nothing Then Exit Sub
If Target <> "" Then
Set BUL = Range("A:A").Find(Target, , , xlWhole)
If Not BUL Is Nothing Then
İlk_Satır = BUL.Row
Son_Satır = WorksheetFunction.CountIf(Range("A:A"), Target) + İlk_Satır - 1
ActiveSheet.PageSetup.PrintArea = "A" & İlk_Satır & ":H" & Son_Satır
Set BUL = Nothing
End If
End If
End Sub
aşağıdaki makroda K2 hücresindeki =bugün() foksiyonu tarih olarak algılamıyor sebebi ne olabilr.
Option Explicit
Private Sub Worksheet_Change(ByVal Target As Range)
Dim BUL As Range, İlk_Satır As Long, Son_Satır As Long
If Intersect(Target, Range("K2")) Is Nothing Then Exit Sub
If Target <> "" Then
Set BUL = Range("A:A").Find(Target, , , xlWhole)
If Not BUL Is Nothing Then
İlk_Satır = BUL.Row
Son_Satır = WorksheetFunction.CountIf(Range("A:A"), Target) + İlk_Satır - 1
ActiveSheet.PageSetup.PrintArea = "A" & İlk_Satır & ":H" & Son_Satır
Set BUL = Nothing
End If
End If
End Sub
