Renamed columns missing in insert column option in MS Project

A

a.sindhu8

Hi,

In our application we have renamed few columns of the table .

applicationObject.TableEdit(Name:=const_Table, TaskTable:=True,
NewFieldName:="Flag6", Title:="My column", Width:=10, Align:=2,
LockFirstColumn:=True, DateFormat:=255, RowHeight:=1, AlignTitle:=1).

I am able to rename the column but if i hide column and then right
click on the columns -> insert columns , then i cant find the renamed
column there, only the MS project columns are present like in this
case "Flag6" is present but "My column" is not there.

Can anyone tell me if there is anyway how can i get the renamed column
names in the insert column option.

Thank you,
Sindhu
 
A

a.sindhu8

You have not re-named the field.
You have given it a Title, which is what appears at the head of the column,
and is different from a new name.
A Title only applies while the column appears in the Table in which the
Title was added.
The most obvious example of this is the Name field/column in the Entry Table
where the Title is "Task Name", not "Name".
You can easily see this in View, Table, More Tables and edit the Entry Table
and you can see the Title as one of the settings.
If you change the Title to "Daffy Duck", that is what appears at the hgead
of the column, but only in that Table.
If you edit the Cost Table you will see that several columns have Titles
which are not their names.
For example, the Cost field has the Title "Total Cost" in the Cost Table but
if you insert it into any other Table, such as the Entry Table, its name
appears because it has no Title.

You cannot re-name the built-in fields (obviously) but you can re-name the
custom fields (Tools, Customize Fields, Rename) and then you can give the
same field different Titles in different Tables.
--
Trevor Rabey
0407213955
61 8 92727485
PERFECT PROJECT PLANNINGwww.perfectproject.com.au











- Show quoted text -

Hi ,

Thanks for your reply.

We know that we cannot rename the fields but can only change the
titles.

What we want is the title to be displyed in the insert column option.
is this possible?

Thanks,
Sindhu
 
R

Rob Schneider

Hi ,

Thanks for your reply.

We know that we cannot rename the fields but can only change the
titles.

What we want is the title to be displyed in the insert column option.
is this possible?

Thanks,
Sindhu

As Trevor said, it is possible if you "rename" the fields.
 
J

JulieS

Hi ,

Thanks for your reply.

We know that we cannot rename the fields but can only change the
titles.

What we want is the title to be displyed in the insert column
option.
is this possible?

Thanks,
Sindhu

Hello Sindhu,

In the future questions about add-ins would best be posed in the
Project Developer newsgroup. That being said a recorded macro of
renaming the Flag6 field yields the following line of code:

CustomFieldRename FieldID:=pjCustomTaskFlag6, NewName:="My Column"

I am not a developer so you'll need to modify the code above as
necessary.

You *can* rename the Flag6 field, however your initial code only set
the Title. Once the field has been renamed, you will see the
original field name - Flag6, as well as the new field name "My
Column" will show.

I hope this helps. Let us know how you get along.

Julie
Project MVP

Visit http://project.mvps.org/ for the FAQs and additional
information about Microsoft Project
 
V

vanita

Hi Sindhu

As Trevor has pointed out, you can only rename custom fields like Text, Flag
fields etc. When you assign a Title while inserting these columns, it is only
for one instance. But, for permanently renaming these columns, first insert
the columns, select the column, right click and through Customise Fields
option Rename the column. This way even after hiding the column, new name
would be shown when you reinsert the column.

I hope it helps.
Vanita
 

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