Private Sub Workbook_BeforeClose(Cancel As Boolean) Bu procedurenin nasil calistigi hakkinda biraz aydinlatilmaya ihtiyacim var.
yazdigimda [U7]'deki deger kitabi her kapattigimda o tarihi S sutununa kaydetmeye calistim ama basaramadim.
Kod:
Private Sub Workbook_BeforeClose(Cancel As Boolean)
Dim counter, w, x As Integer
Sheets(1).Select
[U7] = [U7] + 1
x = [U7]
ActiveSheet.Range("s" & x).Value = Now
ActiveWorkbook.Save
end sub