sorting tasks

J

Jack D.

Sherry said:
In Gantt chart view, how can I sort things by task name?

Go to project menu,
select sort
select sort by...
choose the Name field.
Click OK

--
Please try to keep replies in this group. I do check e-mail, but only
infrequently. For Macros and other things check http://masamiki.com/project

-Jack Dahlgren, Project MVP
email: J -at- eM Vee Pee S dot COM


+++++++++++++++++++
 
D

Dave W

Be careful with this. If you save it sorted, you will not be able to get the
original structure back easily!
 
J

John

Sherry,
If I recall correctly, a standard sort when applied to text will look at
the first alpha character in the text string. Therefore as you may have
already found, a sort on the task name will first pick out all names
that start with "a", then "b" and so forth.

There are probably some schemes you can use to code the first few
characters of the name field so you will get the sort you want but that
could be a lot of extra work to code up all the task names. Unless
someone else has a clever way of doing it, my suggestion is to write a
simple VBA macro that reads each task name (or key phrase thereof) and
matches it up with any others. A match would put a code in a spare text
or number field that can then be sorted in the conventional way. This
approach may seem a bit complex, but it's not as bad as it sounds.

John
 
S

Steve House

Go to the Project menu and choose Sort. You can specify up to three
fields to sort on, name being one of them. Note the lower left-hand
corner of the dialog box where there are check boxes for "Permanently
Renumber Tasks" which will let you easily restore your original order if
it's *cleared* when you do the sort, and "Retain Outline Structure"
which will keep your subtasks indented under their parent summary tasks
as they should be 99.999% of the time when checked *on*.
 
S

Smmiles

Steve: I'm experiencing a sorting / filtering anomoly. I have three tasks at the start of my plan, all under SUmmaryTask1. I have moved a subtask section. Since the move, the three top tasks (task1 , 2 and 3) also move whenever the plan is opened. The moved task section stays in its place (the "moved to" place), the three tasks move around. Two of these are milestones ("Project Begins" and "X complete".) as follows:
Task ID Desc Pred
1 SummTask
2 Subtask
3 Subtask milestone 2
4 Subtask milestone 2

This is a problem as on the gantt chart, the two kickoff milestones get moved to somewhere in the middle of the chart.
Any ideas?
 

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