LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 703
Default How to get formula type in VBA

Is there a property that returns whether or not the formula in a cell is an
array formula?

I can insert a formula or an array formula into a cell no problem, but
regardless of which way I insert it both the .Formula and the .FormulaArray
properties return identical strings. I would've thought that one or the
other would return empty.

The following Debug.Print statements show identical strings whether I insert
the formula string into .Formula or .FormulaArray

Range("C1").Formula = "=SUM(IF(A1:A5=1,B1:B5))"
Debug.Print Range("C1").FormulaArray
Debug.Print Range("C1").Formula

Range("C1").FormulaArray = "=SUM(IF(A1:A5=1,B1:B5))"
Debug.Print Range("C1").FormulaArray
Debug.Print Range("C1").Formula

Any ideas?
TIA
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
What type of formula should I use? Dave Excel Discussion (Misc queries) 2 December 3rd 08 08:21 PM
Type of SUM formula ??? nastech Excel Discussion (Misc queries) 4 July 17th 07 08:50 PM
Cannot see formula descriptions in worksheet as I type a formula. RABL33 Excel Worksheet Functions 5 January 17th 07 06:59 AM
Look for a certain type of formula... jimmy Excel Discussion (Misc queries) 0 October 10th 06 09:11 PM
Just need to know what type of formula i would use for this DHS64 Excel Worksheet Functions 2 September 26th 05 10:18 PM


All times are GMT +1. The time now is 10:18 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"