Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Resource weekly hours

Status
Not open for further replies.

lmontes

Programmer
Jan 28, 2002
25
US
Does anyone know where Project stores the weekly Resource hours for each task?

I'm trying to send this information to Access.
 
Without actually writing the code for you, look at:

First, vary cntR from 1 to the number of resources in your project. Within that loop, vary cntA from 1 to the number of assignments for that resource.

For cntR = 1 to Activeproject.resources.count
For cntA = 1 to activeproject.resources(cntR).assignments.count
debug.print activeproject.resources(cntR).assignments(cntA).taskid
Next
Next
 
Thanks, what about getting the hours for each task weekly?
Is that possible?
 
Look up "timephasedata". It'll take too long to explain here but it will have what you're looking for. One gotcha: Project does everything in minutes so when you ask for 1 "day" you'll get 480 which is (8 hours * 60 minutes).
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top