Quantcast
Channel: Project Customization and Programming forum
Viewing all articles
Browse latest Browse all 5347

BeforeSave macro error when installing in EGlobal

$
0
0

I've been working on getting a BeforeSave macro to capture baseline "save" dates as referenced in this thread:

http://social.technet.microsoft.com/Forums/projectserver/en-US/30c5ea7b-325f-4de7-be6c-8e150f7ae1b3/capturing-baseline-save-date?forum=projectprofessional2010general

I've also found another thread in which Barbara Henhapl explains how to incorporate the BeforeSave macro into the EGlobal template:

http://social.msdn.microsoft.com/Forums/en-US/0ac7d567-8c30-4b8c-bf6f-05c0ba011372/how-to-run-a-macro-automatically-before-saving-the-project?forum=project2010custprog

 

However, now that I have the macro working in an individual project, I'm having difficulty getting it saved to my global template so it's automatically added to each schedule when it's opened from the server.

I've tried adding the code to the "VBAProject (Global + non-cached...) --> Microsoft Project Objects --> ThisProject (Global + non-cached...) but it's throwing a Run-time error as show below:

This screen shot is from editing the Global template itself.  I've also tried adding the code by saving the schedule that the code is working in to the server, and then adding the code to the VBAProject from there.  Still throws the same error.

What am I missing?

Thanks for any suggestions.


DJ Johnson


Viewing all articles
Browse latest Browse all 5347

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>