PRJ4x: Incomplete Project Filename Displayed for Macro/Module (136726)



The information in this article applies to:

  • Microsoft Project for Windows 95 4.1
  • Microsoft Project for the Macintosh 4.0

This article was previously published under Q136726

SYMPTOMS

In Microsoft Project, the name that appears in the Module list on the Visual Basic toolbar for a module in your project may contain an incomplete project filename.

When this behavior occurs, the following additional symptoms occur:

  • The name that appears in the Macro dialog box for a macro in your project may not display the complete project filename.

  • The References dialog box displays an incomplete filename for your project.

CAUSE

This behavior occurs when you use the FileSaveAs method to save a file with a name that contains a period. For example, if you use the FileSaveAs method in a macro to save your project as Test.Test, a module in the project is displayed as [Test]Module1 in the Module list on the Visual Basic toolbar (where Module1 is the module name). The text following the period is not displayed in the project filename in the Module list.

Additionally, if another project that contains a macro is open in Microsoft Project, a macro in the project Test.Test that was saved using the FileSaveAs method in the above example is displayed as [Test]Macro1 in the Macros dialog box (where Macro1 is the macro name).

When this problem occurs, the filename is displayed correctly in the project title bar (the program title bar if the project window is maximized).

WORKAROUND

In Project for Windows 95, to display the entire project filename properly in the Module list on the Visual Basic toolbar or a macro in the Macros dialog box after saving the file by using the FileSaveAs method, save the file again by clicking Save As on the File menu, and then click the Save button.

On the Macintosh, save the file without a period in the file name.

NOTE: This problem is not corrected by saving the file again using the FileSaveAs method in a macro or by using the Save command on the File menu.

STATUS

Microsoft has confirmed this to be a problem in the versions of Microsoft Project listed above.

REFERENCES

For more information about using the FileSaveAs Method in a macro in Microsoft Project, click the Index tab in Microsoft Project Help, type the following text

FileSaveAs

and then double-click the selected text to go to the FileSaveAs Method topic.

Modification Type:MajorLast Reviewed:10/7/2003
Keywords:kbbug kbcode kbpending KB136726