< Day Day Up > |
In Chapter 17, "Exporting and Importing Data with Other File Formats," you learned to export and import Project data in other file formats, using Project's Open and Save commands. You learned to exchange whole projects and to use Import/Export maps to work with selected blocks of data. In this chapter, you will learn how to exchange individual field values as well as objects between files, using the Copy and Paste commands and the Insert Object command. Both data that you paste into Project and objects that you insert into Project can often be linked to the original source, to enable you to update the Project document to show the most current values in the source file. NOTE Unless you are very competent using VBA (Visual Basic for Applications) to write macros that send Project data to other applications, you will find that using Copy and Paste is the only easy way to copy Project's timephased data into other applications. Import/Export maps don't handle timephased data, and Project's timephased reports can only be sent to the printer or viewed onscreen in Project. If you do not need to transfer all the information in a file (for example, you need just one or a few values from the source document), you can use the Windows Clipboard to copy and paste the data from one application's document (the source) to another application's document (the destination). Project can be the source or destination for exchanging data this way. You can simply paste a copy of the values or you can paste a permanent link that displays the current value from the source document but also can be updated on demand to display any changes in the source document. When you are pasting Clipboard data into a table in Project, it is very important that you select the correct field(s) to receive the data. When you're importing files, the Import/Export map defines where the field data will be pasted. But with the copy and paste procedure, the paste location depends on where you click the mouse to make a selection just before you use the Paste command. If you are pasting a single value, it's easy to select a recipient field that is appropriate for the value you are copying. If you are copying a block of two or more columns of values, however, you need to be in a table view in Project that has the appropriate columns next to each other to receive the block of copied values. Frequently, this means that you must define a custom table in Project to display the data field columns in the same order as the data that you are copying. When you paste the data into Project, you might also have to have a custom table displayed in the current view.
The Excel worksheet in Figure 18.1 is laid out with fields for the resource names and the cost rates for each resource. The standard Entry table in the Resource Sheet view does not match this layout; it has five other columns between the Resource Name and the Standard Rate columns. Therefore, you should create a custom Entry table and hide those five columns to allow the data to be pasted correctly (see Figure 18.2). Figure 18.1. To correctly paste this spreadsheet data, you need to create a custom table in Project, with columns laid out in exactly the same order as in the spreadsheet.
Figure 18.2. A custom resource table called Paste Entry can be created to accept the data pasted from the spreadsheet shown in Figure 18.1.
You must also be sure that the cell you select before executing the Paste command is the cell that should receive the upper-left cell of the pasted block. In Figure 18.2, the cell containing Terry Uland was selected before pasting. Copying Data from Other Applications into ProjectTo copy data from another application into Microsoft Project, follow these steps:
The paste operation places a static copy of the current value from the source document in the field that you selected. Microsoft Project does not automatically update this value if the value in the source document is changed. If you select a field that does not support the data type you are importing, you see a pasting error message like the one shown in Figure 18.3. For example, the data from Figure 18.1 contained the text value N/A in cell D5 (the third row of the selection), and in Figure 18.3, Project says that it was unclear what to do with that value in the Overtime Rate field. The error message points out that the error was detected in ID 3 in the Overtime Rate column. The error dialog box offers you these option buttons :
Figure 18.3. The pasting error message tells you where the error occurred and gives you clues about the type of data that is expected.
CAUTION Pasting dates into the Start or Finish fields for tasks creates soft constraints for those tasks (Start No Earlier Than constraints in projects scheduled using a start date, and Finish No Later Than constraints in projects scheduled using a finish date). You can change the constraint on the Advanced tab of the Task Information dialog box. For more information about removing constraints and the types of constraints, see "Working with Task Constraints," p. 201 . Copying Microsoft Project Data into Other ApplicationsTo copy data from Microsoft Project to another application, follow these steps:
Figure 18.4 shows a block of data copied from the Resource Usage view into an Excel worksheet. Prior to the Copy operation, the Cost table in Project was modified to include the Assignment field. After the Paste operation in Excel, the user typed and formatted the heading at the top of each column in the worksheet. You can now do the final formatting on this worksheet by using the Assignment column to separate the rows that contain resource data from the rows that contain assignment data. Figure 18.4. Three columns of data have been pasted from the Resource Usage view in Project, and the data is now ready for final formatting in Excel.
NOTE To copy and paste the information contained in the timephased grid of either the Task Usage or Resource Usage views, you must follow a series of three steps. First, select the desired information in the table, and then copy and paste it to the destination application. Second, select the desired data in the timephased grid, matching the data in the grid with the appropriate rows in the table. You can then copy this information and paste it to the target application. Finally, type the column headings for both the table information and the timephased data in the target application.
|
< Day Day Up > |