Ms project Datedifference

B

Bjørn Tore Hovda

hey!

I want to use the datedifference function.

and i want to use the "task calendar" as the calendar parmeter.

something like this:
-------------------------------------------------
dim activity as task


For Each activity In ActiveProject.Tasks

msgbox(application.datedifference("10.07.05","12.07.05",activity.Calendar)

next

---------------------------------------------------
but this result in a type mismatch error!!!! :(

got a clue why?



pls hlp

-Bjorn , Norway
 
Top