wbs: renumbring programatically

B

bachirben

hi all,

I am working on a project that synchronizes task lines from and to MSproject
to an ERP system that supports WBS, so we support moving ,deleting and adding
lines to MSproject , my problem is how to keep track of changes to wbs code
and in case of any changes to a given task line how can i renumber wbs
programatically , any help is very appreciated.

thanks

using msp project 2003 , c#
 
R

Rod Gill

Hi,

You just need to write to the WBS field as if it were a text field. For
example I just executed;

activeproject.Tasks(1).WBS="2.1"

in the immediate window for VBA and the WBS for task 1 updated to 2.1 from
its original 1. This won't renumber any preceding or succeeding WBS numbers,
that needs to be programmatically done as well.

--

Rod Gill
Project MVP

NEW!! Project VBA Book, for details visit: www.projectvbabook.com
 
B

bachirben

hi Rod,

thanks for the prompt answer and help, this is very helpful, I will post
more questions along the way because this is just the tip of the iceberg of
my project.
 

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