Macro error due to global.mpt

S

Sumit

Dear All,

I created following macro to run before save. This is working fine till any project is open but gives error when I close the Application stating "Object required".

Any idea on how to check if the file being saved is global.mpt?
 
R

Rod Gill

Hi,

try testing the pj.name property.

--
For VBA posts, please use the public.project.developer group.
For any version of Project use public.project
For any version of Project Server use public. project.server

Rod Gill
Project MVP
For Microsoft Project companion projects, best practices and Project VBA
development services
visit www.projectlearning.com/
Sumit said:
Dear All,

I created following macro to run before save. This is working fine till
any project is open but gives error when I close the Application stating
"Object required".
 
Top