R
Robert
Hello,
What is the syntax of the DateDifference(StartDate, FinishDate, Calendar)
method.
Especially, how to write the calendar name : between quotes? commas,...
The following sub returns an error : incompatibility of type.
Thanks
Sub Durée()
Dim Deb As Date
Dim Fin As Date
Deb = ActiveCell.Task.Start
Fin = ActiveCell.Task.Finish
Debug.Print Application.DateDifference(Deb, Fin, "Standard") / 420
End Sub
What is the syntax of the DateDifference(StartDate, FinishDate, Calendar)
method.
Especially, how to write the calendar name : between quotes? commas,...
The following sub returns an error : incompatibility of type.
Thanks
Sub Durée()
Dim Deb As Date
Dim Fin As Date
Deb = ActiveCell.Task.Start
Fin = ActiveCell.Task.Finish
Debug.Print Application.DateDifference(Deb, Fin, "Standard") / 420
End Sub