Skip to content

Macros in MS Project

Manulal InasuMember for 21 years
Created
10
4
0
I know what macros are.

But could you please tell me some of the practical applications of macros in MS Project.

Are they really used by planners in MS project.

Where ever MS project is lagging behind Primavera, can we use macros programmed in VB to improve it?

Manu.

10 replies

Oldest first
  1. 0
    Vladimir Liberzon ·
    Unfortunately you will not use macros for resource leveling.
  2. 0
    Christian Adrian De Vera ·
    I believe it is best use in excel...
  3. 0
    Zhang Haixiang ·
    Yes, you can use macro to imporve MSP.
    I’ve write a macro to make a predecessor form the same as P3, using * to indicate driving preds.
  4. 0
    Hannes de Bruyne ·
    Hi Zhang,

    this sounds very interesting. Is it possible to put this macro in this forum (just as text). I like writing makros as well and its always good to learn from ideas of other persons.

    Thanks
    Hannes
  5. 0
    Zhang Haixiang ·
    just use taskdependency object to check each pred of current selected task, and use the link type & lag to calculate the start date of the current selected task, if the date equals to the start date of the current selected task, then consider it as driving pred.

  6. 0
    Hannes de Bruyne ·
    Hello Zhang

    thanks for the answer, it is realy a nice idea. I would even be more happy if you could copy some of the macro-text in your answer. As I said I work a lot with macros too and I noticed in the past, that people work in very diffent ways with macros. Those different approaches are the things that interrest me, because from that I can learn a lot more than from the examples of Microsoft

    Regards Hannes
  7. 0
    Manulal Inasu ·
    Hi,

    Will the VB macros we use in excel work in MSP as well.
    I learnt most of the macros coding in excel by recording a macro and then analysing the code. But this method does not seem to be easy in MSP.

    Manu.
  8. 0
    Zhang Haixiang ·
    They are almost the same. The difference is the objects(events,method...). You can learn these from the HELP file,also recording & studying.

    It’s better to go through all the objects in MSP.
  9. 0
    Manulal Inasu ·
    Hi Zhang,

    Thank you. I have already started learning more about macros in MSP.

    Manu.
  10. 0
    Hannes de Bruyne ·
    hello Manulal

    of course you can also use these MSP-macros from an Excel-Task. I.e. that you can transfer data very easily and use the graphical possibilities of excel to show the information of MSP. Or even better - you can connect to AutoCAD or P3 using these macros.

Log in or join to reply

ProjectControls.com is free to join. Members can post questions, reply, vote and follow discussions.

Existing members: your original username and password still work. Forgot password?