Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
The code that I am trying to use is very simple.
I would like to replicare automatically a formula along many cells, one yes and one no along a given range. So I tried to build a macro: sub a () for i 4 to 400 step 2 range(i).formula="=if(a2<b2;a2;b2) next i end sub The macro doesn't work even without the for-next cicle. On the contrary, the formula =if(a2<b2;a2;b2) works as expected when placed in a cell of the worksheet inside which I want to run the macro. What am I doing wrong? Thank you for your help, Riccardo |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
run time error 1004 general odbc error excel 2003 vba | Excel Programming | |||
Run Time Error 1004: Application or Object Defined Error | Excel Programming | |||
Run Time 1004 Error: Application or Object Difine Error | Excel Programming | |||
run-time error '1004': Application-defined or object-deifined error | Excel Programming | |||
Run time error '1004': Generaol ODBC error | Excel Programming |