Object required error in macro

S

Sumit

Any idea on how to check if the project being saved is global.mpt and not to run the following macro?

As this works fine for projcts but not when I close the App.
 
J

John

Sumit,
How about simply inserting an 'IF' statement that looks at the file path
before line 2 and checks for ".mpt". If the extension is hidden, just
check the file name.

John
 
S

Sumit

I did set the code to check "if not pj is nothing then"

this won't go ahead if its global.mpt

Regards,
sumit
 

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