Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Microsoft Office > Excel VBA > Excel VBA
|
Excel VBA Discuss using VBA for Excel programming.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Excel VBA section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 19th, 2004, 04:09 PM
Registered User
 
Join Date: Jan 2004
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Error setting Formula Array property for a Range

I am writing a series of macros that will sum details from multiple
worksheets onto a summary page. It seems to work find until it gets to a summary which includes 10 detail pages (lots more than the ones that work). I then get the error 1004 - Unable to set the FormulaArray property of the Range Class. When I cut and past the formula from the debugger into the spreadsheet, for the area selected by the vba macro, it works fine. How do I get it to work from the macro?

Thanks in advance,
Rosanne

p.s. the formula looks like this:
: strFormula : "= + '1.1.4.1'!W13:AH32 + '1.1.4.2'!W13:AH32 + '1.1.4.3'!W13:AH32 + '1.1.4.4'!W13:AH32 + '1.1.4.5'!W13:AH32 + '1.1.4.6'!W13:AH32 + '1.1.4.7'!W13:AH32 + '1.1.4.8'!W13:AH32 + '1.1.4.9'!W13:AH32 + '1.1.4.10'!W13:AH32"

 
Old February 4th, 2004, 07:25 PM
Registered User
 
Join Date: Feb 2004
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Change the formula. I supect that you have over run the allowed size for a formula. I had the same problem when I set up a loop to create a formula which then died after the weeks overan the available space.

Excel allows summing in the format
sum( sheet1!:sheet99!W13: AH32), you will have to find the exact format.

In summary it allows you to define the leftmost sheet, then the rightmost sheet and then the common cells.

If it won't allow multiple cells then sum each sheet and sum through the single total cells.



 
Old February 5th, 2004, 02:08 PM
Registered User
 
Join Date: Jan 2004
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks for the suggestion. Unfortunately, the pages that I am summing are not consecutive.






Similar Threads
Thread Thread Starter Forum Replies Last Post
"Value2" property of Range object sektor Excel VBA 1 April 11th, 2008 03:28 AM
Error setting Range Value property Keith Smith Excel VBA 3 March 14th, 2008 07:32 AM
Excel Formula End Range Changes when Macro Is Run maaron Excel VBA 0 October 11th, 2005 10:56 AM
Excel Formula End Range Changes when Macro Is Run maaron Beginning VB 6 0 October 11th, 2005 10:33 AM
CurrentArray Range in Formula pagates Excel VBA 1 October 5th, 2004 03:53 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.