Enterprise Global Macros not valid for Project


Joined
Jun 22, 2017
Messages
1
Reaction score
0
This Macro works on any new project created from desktop suite, it does not work on projects created from Project pwa and opened locally.

Sub SetResourceCalendar()


'Declare Variables
Dim Res As Resource
Dim Cal As String

Cal = ActiveProject.Calendar

'Loop All Resources
For Each Res In ActiveProject.Resources

'Check for Real Resource
If Not (Res Is Nothing) Then

'Set Calendar to Match Project Calendar

Res.BaseCalendar = Cal

End If

Next Res

End Sub



help!!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top