积极答复者
VB中MS Project对象使用OrganizerMoveItem方法

问题
-
下面的代码是一个VB ocx控件中的代码,用的Project 2010 ,在win7环境下
Set mspApp = CreateObject("
MSProject.Application")
If Err.Number = 0 Then
On Error GoTo 0
On Error GoTo MSPError
mspApp.DisplayAlerts = False
'TmpFilName is exist file:"AA.mpt"
mspApp.FileOpen name:=TmpFilName, ReadOnly:=False, _
FormatID:="MSProject.MPT"
mspApp.OrganizerMoveItem Type:=7, FileName:="Project", _
ToFileName:="GLOBAL.MPT", name:=MPTFileName'这里的OrganizerMoveItem 具体怎么解释的呢?,需要什么限定条件?每个参数的含义谁能详细的说一下,其中的FileName是一个文件吗?还是其它的,不是很明白,之前使用了FileOpen打开了一个文件TmpFilName是一个MPT文件
mspApp.FileClose
mspApp.FileOpen name:=strExpFileName, ReadOnly:=False, _
FormatID:="MSProject.CSV", map:=MPTFileName
mspApp.Visible = True
mspApp.DisplayAlerts = True
End If
答案
-
你好,
具体的解释及参数的含义你可以参考这里:
Application.OrganizerMoveItem Method
http://msdn.microsoft.com/en-us/library/bb221636(office.12).aspx
谢谢。
Leo Tang [MSFT]
MSDN Community Support | Feedback to us
Get or Request Code Sample from Microsoft
Please remember to mark the replies as answers if they help and unmark them if they provide no help.- 已标记为答案 shadowlaser 2011年11月21日 9:54
全部回复
-
你好,
具体的解释及参数的含义你可以参考这里:
Application.OrganizerMoveItem Method
http://msdn.microsoft.com/en-us/library/bb221636(office.12).aspx
谢谢。
Leo Tang [MSFT]
MSDN Community Support | Feedback to us
Get or Request Code Sample from Microsoft
Please remember to mark the replies as answers if they help and unmark them if they provide no help.- 已标记为答案 shadowlaser 2011年11月21日 9:54