josevaldesv
Board Regular
- Joined
- May 13, 2004
- Messages
- 95
Cheers mates..
Estoy un poco perdido..
intento hacer lo siguiente, y no me sale...
Esta es toda mi macro... en fórmulas más chicas sí me ha salido...
La fórmula, una vez puesta, corre correctamente
lo que no corre es la macro
any suggestions?
Saludos...
jose valdes
Sub Place_formula_in_cell()
'I want this macro to place the formula
'=IF(IF(IF(K4>=$L$1,IF((DAYS360($L$1,K4))<=$L$1,DAYS360($L$1,K4),"nw"),"p")<=$L$1,IF(K4>$L$1,IF((DAYS360($L$1,K4))<=$L$1,DAYS360($L$1,K4),"nw"),"p"),"-")<>"-","start in "&IF(IF(K4>$L$1,IF((DAYS360($L$1,K4))<=$L$1,DAYS360($L$1,K4),"nw"),"p")<=$L$1,IF(K4>$L$1,IF((DAYS360($L$1,K4))<=$L$1,DAYS360($L$1,K4),"nw"),"p"),"0"),"")
'in cell R4
'but it says it can't
Range("R4").Select
ActiveCell.FormulaR1C1 = _
"=IF(IF(RC[-7]>=R1C12,IF((DAYS360(R1C12,RC[-7]))<=R1C12,DAYS360(R1C12,RC[-7]),""nw""),""p"")<=R1C12,IF(RC[-7]>R1C12,IF((DAYS360(R1C12,RC[-7]))<=R1C12,DAYS360(R1C12,RC[-7]),""nw""),""p""),""-"")<>""-"" ""start in "" RC[-7]>R1C12 (DAYS360(R1C12,RC[-7])) "
Range("R5").Select
End Sub
Estoy un poco perdido..
intento hacer lo siguiente, y no me sale...
Esta es toda mi macro... en fórmulas más chicas sí me ha salido...
La fórmula, una vez puesta, corre correctamente
lo que no corre es la macro
any suggestions?
Saludos...
jose valdes
Sub Place_formula_in_cell()
'I want this macro to place the formula
'=IF(IF(IF(K4>=$L$1,IF((DAYS360($L$1,K4))<=$L$1,DAYS360($L$1,K4),"nw"),"p")<=$L$1,IF(K4>$L$1,IF((DAYS360($L$1,K4))<=$L$1,DAYS360($L$1,K4),"nw"),"p"),"-")<>"-","start in "&IF(IF(K4>$L$1,IF((DAYS360($L$1,K4))<=$L$1,DAYS360($L$1,K4),"nw"),"p")<=$L$1,IF(K4>$L$1,IF((DAYS360($L$1,K4))<=$L$1,DAYS360($L$1,K4),"nw"),"p"),"0"),"")
'in cell R4
'but it says it can't
Range("R4").Select
ActiveCell.FormulaR1C1 = _
"=IF(IF(RC[-7]>=R1C12,IF((DAYS360(R1C12,RC[-7]))<=R1C12,DAYS360(R1C12,RC[-7]),""nw""),""p"")<=R1C12,IF(RC[-7]>R1C12,IF((DAYS360(R1C12,RC[-7]))<=R1C12,DAYS360(R1C12,RC[-7]),""nw""),""p""),""-"")<>""-"" ""start in "" RC[-7]>R1C12 (DAYS360(R1C12,RC[-7])) "
Range("R5").Select
End Sub