OrganizerMoveItem for custom fields

K

krcullen

I've been unable to move custom fields to the global template via
OrganizerMoveItem. I can move filters, toolbars, modules, etc., but not
custom fields.

Here is a code example (of course on one line):
OrganizerMoveItem Type:=9, FileName:="Modules_v39 test.mpp",
ToFileName:="Global.mpt", Name:="Number8"

I read a lengthy thread from 2005 that indicated a similar issue. Does this
issue still exist? Any examples of updated workarounds?

Thanks,

Kristen
 
R

Rod Gill

Hi,

Firstly, if you go to the Organizer, you'll notice that only custom fields
that have been named are available to be moved. So I named Number8 as Test
then recorded a macro. I got:

OrganizerMoveItem Type:=9, FileName:="Delete me.mpp",
ToFileName:="Global.MPT", Name:="Test (Number8)"

I removed the manually moved field from the Global file, ran the code and it
worked.

I would also replace Type:=9 with Type:=pjFields as it's easier to maintain.
--

Rod Gill
Microsoft MVP for Project - http://www.project-systems.co.nz

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




krcullen said:
I've been unable to move custom fields to the global template via
OrganizerMoveItem. I can move filters, toolbars, modules, etc., but not
custom fields.

Here is a code example (of course on one line):
OrganizerMoveItem Type:=9, FileName:="Modules_v39 test.mpp",
ToFileName:="Global.mpt", Name:="Number8"

I read a lengthy thread from 2005 that indicated a similar issue. Does
this
issue still exist? Any examples of updated workarounds?

Thanks,

Kristen

__________ Information from ESET Smart Security, version of virus
signature database 4944 (20100314) __________

The message was checked by ESET Smart Security.

http://www.eset.com

__________ Information from ESET Smart Security, version of virus signature database 4944 (20100314) __________

The message was checked by ESET Smart Security.

http://www.eset.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