Aug 15 2022 04:16 AM
Hello,
I want to have a macro in my global.mpt that will activate when MS Project launches regardless of the schedule file.
I'm only looking for it to happen that once (to modify the xml in some custom ribbons) and do not need it to activate for each file open.
Is there such a macro entry that I can use? (I'm using MS Project Online Desktop)
Thanks in advance
Aug 23 2022 09:26 PM
Aug 24 2022 08:10 AM
Aug 24 2022 08:16 AM
Aug 25 2022 01:00 AM
Aug 25 2022 07:58 AM - edited Aug 25 2022 08:17 AM
I confess, I did read your post when it first appeared. I didn't respond because you asked if there was anything besides the Auto_Open Even and wasn't aware of anything but then my range of knowledge is limited to VBA. I probably should have responded by saying there might be an API that could do what you want but you'd have to do some research for that.
I do recall a previous post on this forum that is related to what you are trying to do. I'm not sure if it will help but you could give it a read.
If I may ask, can you show us the code you have that installs the ribbon? And which formatting is getting whacked?
One more thought popped into my mind after posting this. Years ago when I was in a corporate environment I customized the Project Global to include a series of macros (via custom icons). I hoped corporate would allow us to instill that customization into what was then the "base Global" used by all Project users but they didn't buy it so I ended up distributing the custom Global to all Project users in our group. This is along the same line that Dale proposed in his updated suggestion. As he said, just a thought.
John
Aug 29 2022 02:56 AM
Aug 29 2022 08:55 AM
Thanks for the update. I'm glad to hear the "overwrite" issue you were experiencing is apparently resolved but as far as other methods of running code, I can't help beyond what I already posted. I've never tried to edit XML for Project's ribbon UI so it is new territory for me also. Perhaps, but not likely, someone else with some expertise in that area will pop in.
John