R
Rotem
I am using the following code to "silently" open a project file:
Set pjApp = CreateObject("MSproject.Application")
pjApp.DisplayAlerts = False
pjApp.Visible = False
pjApp.FileOpen Name:=strFileNameToOpen, ReadOnly:=True
Set pjDoc = pjApp.ActiveProject
It works fine if no project file was open previously (Project is running).
However, if Project was running before (anointer file was open an visible to
the user) file (strFileNameToOpen ) is displayed anyway.
Is it possible to always open a file with Project "silently" (not visible to
the user)?
e.g. like in Excel or word.
Set pjApp = CreateObject("MSproject.Application")
pjApp.DisplayAlerts = False
pjApp.Visible = False
pjApp.FileOpen Name:=strFileNameToOpen, ReadOnly:=True
Set pjDoc = pjApp.ActiveProject
It works fine if no project file was open previously (Project is running).
However, if Project was running before (anointer file was open an visible to
the user) file (strFileNameToOpen ) is displayed anyway.
Is it possible to always open a file with Project "silently" (not visible to
the user)?
e.g. like in Excel or word.