Article ID: 213568 - Last Review: October 10, 2006 - Revision: 4.2 XL2000: Cannot Paste Array Formula in Its Original CellThis article was previously published under Q213568 On This PageSYMPTOMS
When you copy and paste a formula, you may receive the following error message:
You cannot change part of an array.
When you run a Visual Basic for Applications macro, you may receive the following error message:
Run-time error '438'.
Object doesn't support this property or method.
CAUSE
This will occur if you copy (either manually or through a macro) a cell that contains an array formula and then attempt to paste the copied formula into a range of cells that also includes the original cell. For example,
you copy cell A1 and then attempt to paste it to cells A1 through A10.
WORKAROUNDCopy and Paste Without a MacroTo work around this problem when you copy and paste the formula manually, follow these steps:
Copy and Paste with a MacroMicrosoft provides programming examples for illustration only, without warranty either expressed or implied. This includes, but is not limited to, the implied warranties of merchantability or fitness for a particular purpose. This article assumes that you are familiar with the programming language that is being demonstrated and with the tools that are used to create and to debug procedures. Microsoft support engineers can help explain the functionality of a particular procedure, but they will not modify these examples to provide added functionality or construct procedures to meet your specific requirements. To work around this problem when you copy and paste the formula with a macro, perform the following steps in your macro:
MORE INFORMATION
In Excel, array formulas are a special type of formula that allow
you to perform a large number of calculations in a single cell. When you
want to enter a formula as an array formula, instead of just pressing
ENTER, you press CTRL+SHIFT+ENTER.
In versions of Microsoft Excel earlier than Excel 97, it is possible for you or a Visual Basic macro to paste a copied array formula in a range of cells that includes the original copied cell. In Excel 2000, this will not work unless you first clear the original cell, or convert it into a normal formula.
| Article Translations
|
Back to the top
