Hello,
I want to assign formula to a cell's FormulaArray property via VBA code.The formula is correct, but when I try to make the assignment, I receive the error message, "Unable to set FormulaArray property of the range class". The formula is stored in a string variable. When execution of the code is stopped due to the error and I switch to debug mode and modify something (e.g. hit a space at the end of the string) in it the string content in the watch window, the execution can be continued without any problem. My question is, what happens when I change the content of the string in the watch window? The change what I make, doesn't change the formula in the string.
Any piece of help or tip would be highly appreciated!
Thanks in advance!
VoiD
I want to assign formula to a cell's FormulaArray property via VBA code.The formula is correct, but when I try to make the assignment, I receive the error message, "Unable to set FormulaArray property of the range class". The formula is stored in a string variable. When execution of the code is stopped due to the error and I switch to debug mode and modify something (e.g. hit a space at the end of the string) in it the string content in the watch window, the execution can be continued without any problem. My question is, what happens when I change the content of the string in the watch window? The change what I make, doesn't change the formula in the string.
Any piece of help or tip would be highly appreciated!
Thanks in advance!
VoiD