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".
 

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. After that, you can post your question and our members will help you out.

Ask a Question

Top