PRJ: Data Linked from MS Excel Not Updated When Moved |
Q114710
If you are working with a Microsoft Project document that contains a link to a Microsoft Excel worksheet, the reference that points to the data in the Microsoft Excel worksheet may not be correctly updated if you move it in the Microsoft Excel worksheet.
When you copy data from Microsoft Excel and you use the Paste Link command to link it to a Microsoft Project document, the reference that points to the Microsoft Excel data uses the R1C1 reference style to create an absolute reference. This reference will be incorrect if you move the linked data in the Microsoft Excel worksheet.
To work around this problem, follow the appropriate procedure below to change the link in Microsoft Project so that it refers to a Microsoft Excel named range. When you use a named range, Microsoft Project can keep track of the source data even if it is moved.
If, for example, in a Microsoft Excel worksheet, cell A1 contains the task name t1 and cell B1 contains the duration value of 5d, and you copy this range and link it to the Name and Duration fields for Task ID 1 in Microsoft Project, a link will be stored in the format specified in the table below.
Version of Version of
Microsoft Project Microsoft Excel Format of link
----------------------------------------------------------------
3.0 4.x or earlier Excel|Sheet1!R1C1:R1C2
3.0 5.0 Excel|[Book1]Sheet1!R1C1:R1C2
4.0 4.x or earlier Sheet1!R1C1:R1C2
4.0 5.0 Book1!Sheet1!R1C1:R1C2
In Microsoft Excel, if you define a name for the range A1:B1 as Test, using the Microsoft Project 3.0 example above, you can change the link reference above to show as follows:
Excel|Sheet1!TestIn Microsoft Excel, if rows or columns are inserted that force the linked range to move, Microsoft Excel updates the named range to reflect the new location of the data. Because Microsoft Project references the named range rather than the exact cell reference, your data will always be updated correctly.
Additional query words: 3.00a
Keywords : kbinterop
Issue type : kbprb
Technology :
|
Last Reviewed: November 3, 2000 © 2001 Microsoft Corporation. All rights reserved. Terms of Use. |