LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,117
Default display a message if a cell value is highe than $50,000

nikki -

while a pop-up message box is good, if the user can just click "ok" &
then go merrily along their way, what good is it?

somtimes for something like this i prefer a formatted merged-cell box
off to the side that shows up with conditional formatting when a value
goes higher than it's supposed to. that way it doesn't disappear
UNTIL they fix the problem.

for instance, in a worksheet i designed for my boss, in one biggish
merged cell that is VISIBLE TO THE USER i put the following formula

=IF((SUM(C3:C13)6),"WARNING! THERE ARE ONLY SIX UNITS TO
DISTRIBUTE!","")

then i put in the conditional formatting:

if cell value is equal to ="WARNING! THERE ARE ONLY
SIX UNITS TO DISTRIBUTE!" formatting (i chose black background w/
red text - very noticeable)

so in playing with her numbers, if she goes over 6 units, that black
"box" with red text pops up, & won't go away until she fixes the
problem.

just an idea
:)
susan



On May 24, 8:36 pm, Gord Dibben <gorddibbATshawDOTca wrote:
Nikki

Is the value a calculated value or typed in?

The Change code is triggered by typing, editing or copying to that cell.

Re-calculation will not trigger a change event.

My skills don't extend to making a pop-up using Calculate event code.

Wait for a better answer if you need a Calculate event

Gord

On Thu, 24 May 2007 17:06:01 -0700, Nikki
wrote:



Hi,


Thanks. I changed myrange to I10:I15 but no message pops up.


"Gord Dibben" wrote:


Nikki


Private Sub Worksheet_Change(ByVal Target As Excel.Range)
Const myrange As String = "A1:A10"
On Error GoTo stoppit
Application.EnableEvents = False
If Not Intersect(Target, Me.Range(myrange)) Is Nothing Then
If IsNumeric(Target.Value) And Target.Value 50000 Then
MsgBox "Have you completed the forward cover form?"
End If
End If
stoppit:
Application.EnableEvents = True
End Sub


This is event code. Right-click on the sheet tab and "View Code".


Copy/paste into that sheet module.


myrange can be changed to suit.


Gord Dibben MS Excel MVP


On Thu, 24 May 2007 14:41:00 -0700, Nikki
wrote:


Thanks that formula works but I want a box to pop up that the user needs to
click ok to acknowledge it instead of it just being written in a cell.


Any ideas?


"Equiangular" wrote:


=If(A250000,"put the text here","")


Nikki wrote:
Hi,


I have a spreadsheet that I would like an message to appear that says 'Have
you completed the forward cover form' if the value in the cell equals more
than $50,000. Is there some code for this?


Thanks- Hide quoted text -


- Show quoted text -



 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I display a message when a cell has a certain value?? [email protected] Excel Discussion (Misc queries) 4 March 28th 07 04:12 PM
when certain number is typed in a cell to display a message Wanna Learn Excel Discussion (Misc queries) 8 September 18th 06 02:27 PM
How to display a pop message based on a cell value ashvik[_2_] Excel Programming 1 July 11th 06 04:05 PM
Mandatory cell - display message Hayley Excel Programming 1 April 3rd 06 08:57 AM
How to display a blank cell with no error message Juco Excel Worksheet Functions 11 January 31st 05 08:24 AM


All times are GMT +1. The time now is 06:49 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"