Add column to Gantt Chart programmatically

S

semika

Hello! My name is Semi and I am now working on VB.NET in collaboration with
MS Project!
I just want to insert a column in Gantt Chart, without displaying the
"Column Definition Box".

I use the following code:
prjApp.SelectColumn(Column:=3)
prjApp.ColumnInsert()

which appers the Column Definition Box and lets the user to decide which
column to insert.

Is there a way to programmatically add a specific column by giving its name??

Any help would be appreciated...

Thank you in advance!
 
J

Jan De Messemaeker

Hi,

Yes you can.
Lookup the help (a long story) for TableEdit method.
HTH
 
S

semika

Jan De Messemaeker thank you for your immediate reply!
I am going to read what you mentioned!
Should I have further questions, I will post agian!

:)
 
S

semika

I ve read what you told me!
I have the following problem: I want to add a column to "Gantt Chart". Not
another table! I use the following code:

prjApp.TableEdit(Name:="Gantt Chart", TaskTable:=True,
NewFieldName:="Text1", Title:="Temporary Field")

The name that I specify is not a Table name!
Can you help me by mentioning which name should I use?

Thanks a lot!
Semi
 
J

Jan De Messemaeker

Hi,

In the menu View you will see Table:..... that is the name
A view can be combined with mone of many tables!
HTH
 
S

semika

You are fantastic! I figured it out!
For the records it was the Entry table!

Thank you very much!!!
 

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