Enterprise Global Macros not valid for Project

Discussion in 'Project' started by Kayla, Jun 22, 2017.

  1. Kayla


    Jun 22, 2017
    Likes Received:
    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

    Kayla, Jun 22, 2017
    1. Advertisements

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 (here). After that, you can post your question and our members will help you out.