S
Scott
Hi, does anyone know how to iterate thru project files on project server.
I'm using the following code, and i have a bunch of projects, and new ones
are added frequently. So i want to iterate through them without specifying
each project name. Thanks. Scott
Dim pApp As Microsoft.Office.Interop.MSProject.Application
Dim app As Application
pApp = CreateObject("msproject.application")
pApp.Visible = True
pApp.FileOpen(Name:="<>\a.Published", readonly:=True)
If System.IO.File.Exists("\\Pegasus\AllAccess\Project
Management\a.mpp") Then
System.IO.File.Delete("\\Pegasus\AllAccess\Project
Management\a.mpp")
End If
pApp.FileSaveAs(Name:="\\Pegasus\AllAccess\Project
Management\a.mpp", FormatID:="MSProject.MPP")
pApp.FileClose()
I'm using the following code, and i have a bunch of projects, and new ones
are added frequently. So i want to iterate through them without specifying
each project name. Thanks. Scott
Dim pApp As Microsoft.Office.Interop.MSProject.Application
Dim app As Application
pApp = CreateObject("msproject.application")
pApp.Visible = True
pApp.FileOpen(Name:="<>\a.Published", readonly:=True)
If System.IO.File.Exists("\\Pegasus\AllAccess\Project
Management\a.mpp") Then
System.IO.File.Delete("\\Pegasus\AllAccess\Project
Management\a.mpp")
End If
pApp.FileSaveAs(Name:="\\Pegasus\AllAccess\Project
Management\a.mpp", FormatID:="MSProject.MPP")
pApp.FileClose()