从多个ms项目文件批量导出 [英] Bulk export from multiple ms project files

查看:116
本文介绍了从多个ms项目文件批量导出的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我要求执行以下操作:


  1. 迭代通过束(~200)项目2010文件在文件夹中
  2. 读取每个文件
  3. 将任务(和一些自定义字段)导出到与项目文件同名的文本文件。

我知道这需要使用Project自动化完成,并且需要在Production上安装软件。我很好。但是,我找到的所有样本都是通过在单个文件中运行宏而不是批量
导出方案来导出地址。

I understand that this needs to be done using Project automation and that it needs the software to be installed on Production. I'm ok with that. However all the samples I have found address export by running a macro from within a single file, not a bulk export scenario.

问题:


  1. 是否有任何代码样本至少可以执行我要做的事情?
  2. 是否有任何第三方工具可以购买并执行此操作?
  3. 有人知道可以连接到MS Project文件的Informatica连接器吗?

谢谢,

Neel

推荐答案

问题1& 2:

Re questions 1 & 2:

1)那里有代码,包括我的书。使用Dir VBA命令迭代文件夹中的所有.mpp文件。

1) There is code out there, including from my book. Use the Dir VBA command to iterate through all .mpp files in a folder.

2)FileSaveAs到.csv文件。使用可以使用管理器移动到Global.mpt文件的Map。

2) FileSaveAs to a .csv file. Use a Map that can be moved to the Global.mpt file using the Organizer.

将代码写入项目文件并在其中包含从中搜索.mpp文件的所有文件夹路径。然后循环通过它们并保存为.csv文件。如果.csv文件格式不合适,您可以从VBA创建自己的文本文件。

Write the code in a project file and include in it all folder paths from which to search for .mpp files. Then Loop thru them and save as to .csv files. If .csv file format isn't suitable you can create your own text files from VBA.

这应该是VBA开发人员的足够线索!

This should be enough clues for a VBA developer!


这篇关于从多个ms项目文件批量导出的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆