Enterprise Global Macros not valid for Project

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

  1. Kayla

    Kayla

    Joined:
    Jun 22, 2017
    Messages:
    1
    Likes Received:
    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!!
     
    Kayla, Jun 22, 2017
    #1
    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.