Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Microsoft Office > Excel VBA > Excel VBA
| Search | Today's Posts | Mark Forums Read
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
  #1 (permalink)  
Old June 1st, 2004, 07:01 PM
Registered User
 
Join Date: Jun 2004
Location: Barcelona, , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Problems introducing a formula using VBA

Hello!
I'm trying to automatize with a macro in VBA how to do a chart. I have already done it manually (introducing the formulas by Excel) but now I can't do that using de Property Formula or FormulaArray.

I read in the Excel Help than there were array formulas which allows you to count values that comply with two conditions by pressing CTRL+Shift+enter altogether.

Look the original formula is:
{=SUM(IF(Hoja1!A2:A529="A";IF(ISNUMBER(Hoja1!B2:B5 29);IF(Hoja1!B2:B529>=5;1;0))))/COUNTIF(Hoja1!A2:A529;"A")}

and I put ranges variables instead of the direct references to cells.

Another thing is that I don't know how to add in the content of a string the quotes.

Thank you in advance.
MARIONA

PS. I bought the Excel 2002 VBA Programmer's Reference and I've found it very useful, but I haven't been capable to found enough help to the problem I mention above.


Similar Threads
Thread Thread Starter Forum Replies Last Post
Introducing parent node to specific siblings Frimann XSLT 11 July 3rd, 2008 03:20 PM
Translating WorkSheet Formula in VBA AndyL Beginning VB 6 2 June 11th, 2008 04:13 AM
Excel formula not working in vba yogeshyl Excel VBA 2 December 12th, 2007 02:27 AM
Excel formula not working in VBA yogeshyl Excel VBA 2 July 19th, 2007 03:57 AM
inputing formula problems thelos Excel VBA 5 September 6th, 2005 11:06 AM





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