View Full Version : Strange Behavior


SpaceCamel
03-09-2006, 05:16 PM
I am getting some strainge behavior. msp2003

-----------------------
Project Saved as "my Project.mpp"
I want to set the File Properties Title to be "my Project" to be shown on
reports.
Title defaults to "my Project.mpp", change to "my Project". Close. It
reverts back to "my Project.mpp". It apprears that you are not allowed to
title your project with the same name as the file name. Why?

-----
Sub ProjNametest()
ThisProject = ActiveProject.name
MsgBox ThisProject

MsgBox ActiveProject.name
End Sub

First Msgbox "Global.mpt"
Second Msgbox <projectfilename>
Why?

-----

ThisProject = ActiveProject.name
x = OrganizerMoveItem(pjModules, ThisProject, "Global.mpt", <modulename>

This bombs if the user has "Hide extentions for known file types" turned on.

------------------

Rod Gill
03-09-2006, 08:31 PM
There is a file name and a project title. For headers and footers use the
project title. Set title using ActiveProject.ProjectSummaryTask.name= or
ActiveProject.BuiltinDocumentProperties("Title")=

--

Rod Gill
Project MVP
Visit www.msproject-systems.com for Project Companion Tools and more


"SpaceCamel" <SpaceCamel@discussions.microsoft.com> wrote in message
news:93873A82-DF1E-42D7-882B-379D9967FCF9@microsoft.com...
>I am getting some strainge behavior. msp2003
>
> -----------------------
> Project Saved as "my Project.mpp"
> I want to set the File Properties Title to be "my Project" to be shown on
> reports.
> Title defaults to "my Project.mpp", change to "my Project". Close. It
> reverts back to "my Project.mpp". It apprears that you are not allowed to
> title your project with the same name as the file name. Why?
>
> -----
> Sub ProjNametest()
> ThisProject = ActiveProject.name
> MsgBox ThisProject
>
> MsgBox ActiveProject.name
> End Sub
>
> First Msgbox "Global.mpt"
> Second Msgbox <projectfilename>
> Why?
>
> -----
>
> ThisProject = ActiveProject.name
> x = OrganizerMoveItem(pjModules, ThisProject, "Global.mpt", <modulename>
>
> This bombs if the user has "Hide extentions for known file types" turned
> on.
>
> ------------------
>

Rod Gill
03-09-2006, 08:31 PM
There is a file name and a project title. For headers and footers use the
project title. Set title using ActiveProject.ProjectSummaryTask.name= or
ActiveProject.BuiltinDocumentProperties("Title")=

--

Rod Gill
Project MVP
Visit www.msproject-systems.com for Project Companion Tools and more


"SpaceCamel" <SpaceCamel@discussions.microsoft.com> wrote in message
news:93873A82-DF1E-42D7-882B-379D9967FCF9@microsoft.com...
>I am getting some strainge behavior. msp2003
>
> -----------------------
> Project Saved as "my Project.mpp"
> I want to set the File Properties Title to be "my Project" to be shown on
> reports.
> Title defaults to "my Project.mpp", change to "my Project". Close. It
> reverts back to "my Project.mpp". It apprears that you are not allowed to
> title your project with the same name as the file name. Why?
>
> -----
> Sub ProjNametest()
> ThisProject = ActiveProject.name
> MsgBox ThisProject
>
> MsgBox ActiveProject.name
> End Sub
>
> First Msgbox "Global.mpt"
> Second Msgbox <projectfilename>
> Why?
>
> -----
>
> ThisProject = ActiveProject.name
> x = OrganizerMoveItem(pjModules, ThisProject, "Global.mpt", <modulename>
>
> This bombs if the user has "Hide extentions for known file types" turned
> on.
>
> ------------------
>

Rod Gill
03-09-2006, 08:31 PM
There is a file name and a project title. For headers and footers use the
project title. Set title using ActiveProject.ProjectSummaryTask.name= or
ActiveProject.BuiltinDocumentProperties("Title")=

--

Rod Gill
Project MVP
Visit www.msproject-systems.com for Project Companion Tools and more


"SpaceCamel" <SpaceCamel@discussions.microsoft.com> wrote in message
news:93873A82-DF1E-42D7-882B-379D9967FCF9@microsoft.com...
>I am getting some strainge behavior. msp2003
>
> -----------------------
> Project Saved as "my Project.mpp"
> I want to set the File Properties Title to be "my Project" to be shown on
> reports.
> Title defaults to "my Project.mpp", change to "my Project". Close. It
> reverts back to "my Project.mpp". It apprears that you are not allowed to
> title your project with the same name as the file name. Why?
>
> -----
> Sub ProjNametest()
> ThisProject = ActiveProject.name
> MsgBox ThisProject
>
> MsgBox ActiveProject.name
> End Sub
>
> First Msgbox "Global.mpt"
> Second Msgbox <projectfilename>
> Why?
>
> -----
>
> ThisProject = ActiveProject.name
> x = OrganizerMoveItem(pjModules, ThisProject, "Global.mpt", <modulename>
>
> This bombs if the user has "Hide extentions for known file types" turned
> on.
>
> ------------------
>

Rod Gill
03-09-2006, 08:31 PM
There is a file name and a project title. For headers and footers use the
project title. Set title using ActiveProject.ProjectSummaryTask.name= or
ActiveProject.BuiltinDocumentProperties("Title")=

--

Rod Gill
Project MVP
Visit www.msproject-systems.com for Project Companion Tools and more


"SpaceCamel" <SpaceCamel@discussions.microsoft.com> wrote in message
news:93873A82-DF1E-42D7-882B-379D9967FCF9@microsoft.com...
>I am getting some strainge behavior. msp2003
>
> -----------------------
> Project Saved as "my Project.mpp"
> I want to set the File Properties Title to be "my Project" to be shown on
> reports.
> Title defaults to "my Project.mpp", change to "my Project". Close. It
> reverts back to "my Project.mpp". It apprears that you are not allowed to
> title your project with the same name as the file name. Why?
>
> -----
> Sub ProjNametest()
> ThisProject = ActiveProject.name
> MsgBox ThisProject
>
> MsgBox ActiveProject.name
> End Sub
>
> First Msgbox "Global.mpt"
> Second Msgbox <projectfilename>
> Why?
>
> -----
>
> ThisProject = ActiveProject.name
> x = OrganizerMoveItem(pjModules, ThisProject, "Global.mpt", <modulename>
>
> This bombs if the user has "Hide extentions for known file types" turned
> on.
>
> ------------------
>

Rod Gill
03-09-2006, 08:31 PM
There is a file name and a project title. For headers and footers use the
project title. Set title using ActiveProject.ProjectSummaryTask.name= or
ActiveProject.BuiltinDocumentProperties("Title")=

--

Rod Gill
Project MVP
Visit www.msproject-systems.com for Project Companion Tools and more


"SpaceCamel" <SpaceCamel@discussions.microsoft.com> wrote in message
news:93873A82-DF1E-42D7-882B-379D9967FCF9@microsoft.com...
>I am getting some strainge behavior. msp2003
>
> -----------------------
> Project Saved as "my Project.mpp"
> I want to set the File Properties Title to be "my Project" to be shown on
> reports.
> Title defaults to "my Project.mpp", change to "my Project". Close. It
> reverts back to "my Project.mpp". It apprears that you are not allowed to
> title your project with the same name as the file name. Why?
>
> -----
> Sub ProjNametest()
> ThisProject = ActiveProject.name
> MsgBox ThisProject
>
> MsgBox ActiveProject.name
> End Sub
>
> First Msgbox "Global.mpt"
> Second Msgbox <projectfilename>
> Why?
>
> -----
>
> ThisProject = ActiveProject.name
> x = OrganizerMoveItem(pjModules, ThisProject, "Global.mpt", <modulename>
>
> This bombs if the user has "Hide extentions for known file types" turned
> on.
>
> ------------------
>