ASKER
If Not Intersect(target, rSDurationTypeColumn) Is Nothing Then 'duration changes
iStaffNo = ActiveCell.Offset(0, -6)
Debug.Print "sdate change"
Call RecalculateStaffAbsence(iStaffNo)
End If
WITH THISDim rngDates As Range
Set rngDates = Range("A1").CurrentRegion.Columns("D:E")
If Not Intersect(target, rngDates) Is Nothing Then
iStaffNo = Cells(target.Row, "A").Value
Debug.Print "sdate change"
Call RecalculateStaffAbsence(iStaffNo)
End If
Private Sub DTPicker1_Change()
Dim Cel As Range
Set Cel = Selection
iStaffNo = Cells(Cel.Row, "A").Value
Debug.Print "sdate change"
Call RecalculateStaffAbsence(iStaffNo)
End Sub
ASKER
ASKER
ASKER
VBScript (Visual Basic Scripting Edition) is an interpreted scripting language developed by Microsoft that is modeled on Visual Basic, but with some important differences. VBScript is commonly used for automating administrative and other tasks in Windows operating systems (by means of the Windows Script Host) and for server-side scripting in ASP web applications. It is also used for client-side scripting in Internet Explorer, specifically in intranet web applications.
TRUSTED BY
ASKER