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!
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
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.
 
Upvote 0
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
 
Upvote 0
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
 
Upvote 0

Forum statistics

Threads
1,214,952
Messages
6,122,458
Members
449,085
Latest member
ExcelError

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