column / table in draft database that flags project object as atemplate

A

andy.novak

Anyone know of data I can check for this? I've got a VBA running
that scans through all the rows in MSP_Projects, opens the project,
sets the value of a custom field, saves, and checks in.

Problem is, a couple of templates are included in the list and the VBA
stops on the save because you have to give it a project name.

I want to skip these rows in the SQL statement.

Thanks
Andy Novak
UNT
 
R

Rod Gill

Hi Andy,

There should be a ProjectType field where 0 is normal project and 1 is
template. Note that in Project Server 2007 it is safer to use the tables or
Views in the Reporting db. I recommend the View MSP_EpmProject_Userview as
it automatically holds all custom fields as well.

--

Rod Gill
Microsoft MVP for Project

Author of the only book on Project VBA, see:
http://www.projectvbabook.com
 

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