Reading the resource names and percentages via VBA to output to Ex

M

Mark VII

Greetings --

I need to dump the task names, resource names and their percentages to an
Excel file for purposes that would take too long to explain. <g>

Getting code in place to dump out task names and resource names was no
problem -- I just looped through the tasks and wrote out their names, and
looped through the resources and wrote out their names.

What's making me crazy is writing out the percentages (the same ones shown
on the resouce tab of the task information dialog). I can't seem to identify
which property of whick collection.

Any suggestions?

TIA...
Mark
 
J

Jan De Messemaeker

Hi,

Dim Job as task
Dim Asg as assignment
for each job in activeproject.tasks
for each asg in job.assignments
debug.print asg.assignmentunits
next
next

Hope this helps
 
M

Mark VII

Hi Jan --

Tried your suggestion. The only thing I had to change was reading asg.Units
instead of asg.assignmentunits, then it worked like a champ.

Thanks a million for the help.

Mark
 
J

Jan De Messemaeker

Thanks fo rthe feedbzack and sorry for the name of the property - the old
memory sqometimes has a flaw :)
 

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