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 cowski on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I export ms project data to excel using VBA?

Status
Not open for further replies.

MAIMPL

Electrical
Joined
May 30, 2006
Messages
1
Location
NL
I need ms project data to determine a lot of metrics based on actual project effort numbers. How do I export project planning data to Excel using VBA?

Many thanks in advance!!!
 
Would copying the cells from MSP (while in a view like gantt) and then simply pasting into Excel do what you want?
 
One thing you may consider is creating a map using the Export Wizard. Once you have created a map containing the fields you wish to have in Excel you can create a macro to dump the data to Excel.

But copying the data will also work well for most all situations.

Example macro:


Sub Export_To_Excel()

Sort Key1:="Date10", Renumber:=True
OrganizerMoveItem Type:=7, FileName:=ActiveProject.Name, ToFileName:="Global.MPT", Name:=" MY MAP"
FileSaveAs Name:="C:\Schedules\MY_SCHEDULE.xls", FormatID:="MSProject.XLS5", map:=" MY MAP"
End Sub
 
Have you tried the "Analyze Timescaled Data in Excel..." feature?
There you can select every field you need to analyze!
I don't remember where it is hidden, anyway just select the "Analysis" Toolbar and from there just click the button.
Bye.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top