![]() |
|
||||||||
| Site Links |
| Consulting |
| Knowledge Base |
| Training |
| Forum |
| Articles |
| Resources |
| Products |
| Cool Tools |
| Contact |
| About Us |
| Go to Page... |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
|
Solved: Alert - When 3 conditions are met on the same row
Hello All,
I'm looking for a "Private Sub Worksheet" vba for the following situation. Excel 2007 On tab (Sheet4) labeled "Orders" Event trigger = After multiple rows of data have been entered in Column H (data is Date FedEx Delivered a package) Check to see if the following three conditions are true 1st - Column C - a cell has the phrase -> 2) Replacement Only 2nd - Column B - same row, the cell has a date that is -> older than 10 days 3rd - Column H - same row, the cell is -> blank (should have a date in it - If it has a date - no action regardless of the age of the date in column B) 'When all three conditions are met then... 1. Message box: A Replacement Only Order has not delivered yet 2. Have the cell in column C have this attribute > ActiveCell.Interior.ColorIndex = 6 If there are not any instances then no message or alert. There could be multiple instances so, it would be cool if the message box could report how many instances occurred. It wouldn't be necessary for multiple Message box pop ups for each instance. (Just one alert) Thanks so much in advance. |
|
Local Time: 08:59 AM
Local Date: 05-22-2013 Location:
|
|
|
|
#2 |
|
|
I figured it out. Thanks anyway
|
|
Local Time: 08:59 AM
Local Date: 05-22-2013 Location:
|
|
|
|
#3 | |||||||||||||||||||||||
|
Moderator
|
Any chance you can put your solution up for others to learn from? Remember To Do the Following.... Use the VBA button to correctly submit your code to the forum. Mark your thread as Solved if satisfied by using the Thread Tools options |
|||||||||||||||||||||||
|
Local Time: 12:59 AM
Local Date: 05-23-2013 Location:
|
|
|
|
#4 |
|
|
A friend helped...and I ended up using a button to activate the code
VBA:
VBA tags courtesy of www.thecodenet.com
Last edited by Aussiebear : 04-19-2012 at 02:45 AM. Reason: Added vba tags to code |
|
Local Time: 08:59 AM
Local Date: 05-22-2013 Location:
|
|
|
|
#5 | |||||||||||||||||||||||
|
|
..or rather you cross-posted at: http://www.excelforum.com/excel-prog...-same-row.html p45cal - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - If I've helped and you can't be bothered to acknowledge it, I can't be bothered to look at further posts from you. ![]() |
|||||||||||||||||||||||
|
Local Time: 02:59 PM
Local Date: 05-22-2013 |
|
|
|
#6 |
|
Moderator
|
(Sigh).... its a very small world these days.
Remember To Do the Following.... Use the VBA button to correctly submit your code to the forum. Mark your thread as Solved if satisfied by using the Thread Tools options |
|
Local Time: 12:59 AM
Local Date: 05-23-2013 Location:
|
|
![]() |
| Display Modes |
Linear Mode |
Switch to Hybrid Mode |
Switch to Threaded Mode |
|
|


