Necesito una msgbox que diga"Food Cost outside parameters"

Chavira55

Board Regular
Joined
Sep 19, 2002
Messages
65
Auxilio! Necesito ayuda. La caja C103 es el resultado de una formula. Nececito una Msgbox que salga cuando La caja esta sobre el numero basico ex. 24.74%. Si el resultado en la caja es 24.76%, la msgbox saldria a decir "xxxx". si es 24.75% o mas baja, no accion.
Gracias por la ayuda!
 

Some videos you may like

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.

bmacias

Board Regular
Joined
Sep 11, 2002
Messages
210
No creo que haya una formula ensi que te de un Msgbox, tendria que hacerse con VBA.

Podrías, hacer que aquellos valores arriba del limite de tolerancia se pintaran de rojo con conitional formatting.

Si no te opones a que se haga la msgbox con macro, favor de indicarlo, pues sería relativamente fácil de construirlo.
 

Chavira55

Board Regular
Joined
Sep 19, 2002
Messages
65
Si podrias hacerlo en vba? me podrias mandar la code para hacerlo?
gracias por adelantado.
 

bmacias

Board Regular
Joined
Sep 11, 2002
Messages
210
Aqui esta el code, si no te funciona, dime para hacerle arreglos:

Sub limite()
Dim i As Single

i = ActiveSheet.Range("c103") / 0.01
If i > 24.75 Then
x = MsgBox("Food Cost outside parameters", vbOKOnly, "Advertencia")
End If
 

Juan Pablo González

MrExcel MVP
Joined
Feb 8, 2002
Messages
11,959
Que tal esto ?<pre>Function LIMITE(Celda As Range, NumeroBasico As Double) As String
If Celda.Value > NumeroBasico Then
MsgBox "La celda " & Celda.Address & " es mayor que el Número básico: " & NumeroBasico
End If
LIMITE = ""
End Function</pre>

Y se puede usar así:

=LIMITE(C103,24.74%)

_________________
Regards,

Juan Pablo G.
MrExcel.com Consulting
This message was edited by Juan Pablo G. on 2002-10-10 11:06
 

Watch MrExcel Video

Forum statistics

Threads
1,122,206
Messages
5,594,833
Members
413,943
Latest member
Dhornsby21

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
Top