PRJ4: Error When You Use a Macro to Consolidate Files |
Q130969
Microsoft Project will generate an application error when you run a macro that is designed to merge a file into an active, combined project. This situation applies to combined windows and projects that have been consolidated and attached to source files.
When you use a macro to import a file, load the file without merging it. This will create a new "project" with the imported information. In Visual Basic for Applications, the command would be similar to the following example:
Sub import()
FileOpen Name:="Filename.txt", Merge:=pjDoNotMerge, _
TaskInformation:=true
End Sub
The constant pjDoNotMerge will force the imported information (either
Text, .CSV, and so on) into a new project.
Microsoft has confirmed this to be a problem in the products listed at the beginning of this article. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.
A combined window of projects, in Microsoft Project is not a project in
itself, but it is an image of selected projects combined in a separate
window pane. Importing and merging a file requires the active window to be
a true "project."
You cannot merge information into a consolidated project file (that is, a
file that attaches itself to source project).
Additional query words:
Keywords : kbcode kbprogramming kbofficeprog
Issue type :
Technology : kbHWMAC kbOSMAC kbProjectSearch kbProject400Mac kbProjectMacSearch kbProject400
|
Last Reviewed: March 31, 2000 © 2001 Microsoft Corporation. All rights reserved. Terms of Use. |