Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
The following array formula is working when directly written in cell. But I
have to do this through a macro. How to write the following command line correctly in a macro. Range("b3") = "=MIN(if(a2:a1000,a2:a100))" |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
The best starting point is to put the Macro recorder on (Tools Macro...)
then enter the formula, then turn off the Macro recorder. Have a look at the code it generated in a new module. -- Wigi http://www.wimgielis.be = Excel/VBA, soccer and music "ezil" wrote: The following array formula is working when directly written in cell. But I have to do this through a macro. How to write the following command line correctly in a macro. Range("b3") = "=MIN(if(a2:a1000,a2:a100))" |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Range("b3").Value = activesheet.Evaluate("MIN(IF(A2:A1000,A2:A100))")
-- HTH Bob (there's no email, no snail mail, but somewhere should be gmail in my addy) "ezil" wrote in message ... The following array formula is working when directly written in cell. But I have to do this through a macro. How to write the following command line correctly in a macro. Range("b3") = "=MIN(if(a2:a1000,a2:a100))" |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
or
Range("b3").Select Selection.FormulaArray = "=MIN(if(a2:a1000,a2:a100))" Mike "ezil" wrote: The following array formula is working when directly written in cell. But I have to do this through a macro. How to write the following command line correctly in a macro. Range("b3") = "=MIN(if(a2:a1000,a2:a100))" |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Array formula: how to join 2 ranges together to form one array? | Excel Worksheet Functions | |||
Writing Array formula through macro | Excel Programming | |||
formula array in a macro | Excel Programming | |||
copy one array formula to an array range | Excel Programming | |||
Tricky array formula issue - Using array formula on one cell, then autofilling down a range | Excel Programming |