ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   message box on cell content (https://www.excelbanter.com/excel-programming/419825-message-box-cell-content.html)

Cooie

message box on cell content
 
Hi
I'm fairly new to this but grateful for any help. I need a warning or
message box to pop up and stop invalid data being entered.
If the user enters a value in a range (C31:U41) that causes a negative value
in another range (C45:C55), then this is invalid data and they need to try
again with correct data.
Hopefully there's a simple answer to this.

Peter T

message box on cell content
 
With C31 selected -

Data / Validation / Custom / Formula : =C45=0

Also see Input msg & Error alert tabs

Copy (or drag) C31 down to C41

Regards,
Peter T

"Cooie" wrote in message
...
Hi
I'm fairly new to this but grateful for any help. I need a warning or
message box to pop up and stop invalid data being entered.
If the user enters a value in a range (C31:U41) that causes a negative
value
in another range (C45:C55), then this is invalid data and they need to try
again with correct data.
Hopefully there's a simple answer to this.




Cooie

message box on cell content
 
Thank you so much, it worked a treat.
Cooie

"Peter T" wrote:

With C31 selected -

Data / Validation / Custom / Formula : =C45=0

Also see Input msg & Error alert tabs

Copy (or drag) C31 down to C41

Regards,
Peter T

"Cooie" wrote in message
...
Hi
I'm fairly new to this but grateful for any help. I need a warning or
message box to pop up and stop invalid data being entered.
If the user enters a value in a range (C31:U41) that causes a negative
value
in another range (C45:C55), then this is invalid data and they need to try
again with correct data.
Hopefully there's a simple answer to this.






All times are GMT +1. The time now is 10:03 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com