G
Gilgamesh
Hello,
I know how to create project objects within (for example MS Word) and
access project items appropriately with code like this.
Dim oProj as Object
Set oProj = CreateObject("MSProject.application")
oProj.FileOpen Name="File.mpp"
MsgBox (oProj.ProjectSummary.Name)
etc
When I do this the project object is invisible and all I see is the word
windows, this is what I want.
However when I tried doing the same inside MS Project VBA it doesn't work.
I know I can open multiple files in the application and switch between them
but for what I want to do I need to reference multiple files simultaneously
(Plus opening the files normally makes them visible).
Can anyone help with how to create further project application objects
within project VBA?
Thank You
I know how to create project objects within (for example MS Word) and
access project items appropriately with code like this.
Dim oProj as Object
Set oProj = CreateObject("MSProject.application")
oProj.FileOpen Name="File.mpp"
MsgBox (oProj.ProjectSummary.Name)
etc
When I do this the project object is invisible and all I see is the word
windows, this is what I want.
However when I tried doing the same inside MS Project VBA it doesn't work.
I know I can open multiple files in the application and switch between them
but for what I want to do I need to reference multiple files simultaneously
(Plus opening the files normally makes them visible).
Can anyone help with how to create further project application objects
within project VBA?
Thank You