Wrox Programmer Forums
|
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 December 28th, 2005, 03:59 AM
Registered User
 
Join Date: Dec 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default FormulaArray problem

I've been trying to create a macro to count the occurrence of a character in a range. the macro should search through every column for the string.
For column = 2 To 6

    Cells(15, column ).Select
    Selection.FormulaArray = _
        "=SUM(LEN(R[-13]C[column]:R[-7]C[column ])-LEN(SUBSTITUTE(R[-13]C[column ]:R[-7]C[column ],""A"","""")))"
Next column

however, i keep getting the following error message:"unable to set the formulaarray property of the range class" it seems to have something to do with my using of a variable in the R[]C[]
thanks






Similar Threads
Thread Thread Starter Forum Replies Last Post
"Unable to set the FormulaArray property..." rduncan1 Excel VBA 2 August 18th, 2006 01:33 PM
Help! RTD and Range.FormulaArray nabongwon Excel VBA 1 December 31st, 2004 05:46 AM





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