C
Chris
I have the code below in a template file to force new resource base calendars
to a Federal Calendar (instead of the default Standard calendar). This code
works fine when adding single resources anywhere, however the event itself
appears to be by-passed when you add a group distribution list from the
address book and request project to expand the group distribution list to
individual resources. How can I force project to trigger this event in this
case? Is there a work-around?
Private Sub ProjApp_ProjectResourceNew(ByVal pj As Project, ByVal ID As Long)
If pj.Resources.UniqueID(ID).BaseCalendar <> "Federal Calendar" Then
pj.Resources.UniqueID(ID).BaseCalendar = "Federal Calendar"
End If
End Sub
to a Federal Calendar (instead of the default Standard calendar). This code
works fine when adding single resources anywhere, however the event itself
appears to be by-passed when you add a group distribution list from the
address book and request project to expand the group distribution list to
individual resources. How can I force project to trigger this event in this
case? Is there a work-around?
Private Sub ProjApp_ProjectResourceNew(ByVal pj As Project, ByVal ID As Long)
If pj.Resources.UniqueID(ID).BaseCalendar <> "Federal Calendar" Then
pj.Resources.UniqueID(ID).BaseCalendar = "Federal Calendar"
End If
End Sub