ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   msg box help (https://www.excelbanter.com/excel-programming/300645-msg-box-help.html)

sally

msg box help
 
I have prepared this spread sheet for recording contributions made b
members of my bridge club.
However i need a vba codes that will compare four cells and based o
certain conditions activate a msg box.
eg if A1/A2 < 30 pop up a message but do nothing if 30 and also i
C3/C4<5 pop up a different message this time a yes/no/ok msg box bu
nothing if 5. Is this possible ?
sall

--
Message posted from http://www.ExcelForum.com


Bob Phillips[_6_]

msg box help
 

If Range("A1")/Range("A2") < 30 Then
MsgBox "Message 1"
End IF

If Range("C3")/Range("C4") < 5 Then
MsgBox "Message 1"
End IF

What about = 30 and = 5?

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"sally " wrote in message
...
I have prepared this spread sheet for recording contributions made by
members of my bridge club.
However i need a vba codes that will compare four cells and based on
certain conditions activate a msg box.
eg if A1/A2 < 30 pop up a message but do nothing if 30 and also if
C3/C4<5 pop up a different message this time a yes/no/ok msg box but
nothing if 5. Is this possible ?
sally


---
Message posted from http://www.ExcelForum.com/





All times are GMT +1. The time now is 10:17 PM.

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