Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default 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

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default 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/



Reply
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



All times are GMT +1. The time now is 04:54 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"