Error con macro al poner fórmula en celda :(

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
 
Comence a escribir unos comentarios mas, pero, en vista de que Jose ha podido resolver su problema, voy a dejar las cosas como estan. :diablo:

Pero si queria darle las gracias a Greg por entender el problema y resolverlo, aunque parece que Jose ya lo habia hecho, pero sin habernos dejado saber :-D

:beerchug: a todos los participantes!
 
Upvote 0

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.
FELIZ NAVIDAD A TODOS!!!

La razón por la que no se los hice saber fue porque me encontraba en mi laptop, lejos del mundo del Internet, y en mis pruebas lo logré, y apenas regresé a conectarme, avisé :lol: sorry

FELIZ NAVIDAD!
 
Upvote 0

Forum statistics

Threads
1,223,948
Messages
6,175,575
Members
452,652
Latest member
eduedu

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top