VincentW29
New Member
- Joined
- May 27, 2022
- Messages
- 5
- Office Version
- 2016
- Platform
- Windows
Morning all,
Apologies, posting this because I could not find appropriate solutions to my problem. Earlier I obtained this particular code from Dante (which I’m immensely thankful for) which helped in generating a message box (when two conditions are met) for my worksheet:
However, I need help in enhancing this to include additional message boxes within the same worksheet (which I’ve tried to do and failed). The items I would like to generate message boxes for are:
- if cell A2 is above a certain date
- if either cell E10, F10 or G10 meets a certain criteria (from a dropdown list)
- if the value in cell J5 is over 100000
Most of all, I would like to know how to structure the code such that multiple message boxes can appear in the same worksheet.. really appreciate any help I can get here! Thank you!
Apologies, posting this because I could not find appropriate solutions to my problem. Earlier I obtained this particular code from Dante (which I’m immensely thankful for) which helped in generating a message box (when two conditions are met) for my worksheet:
VBA Code:
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.CountLarge > 1 Then Exit Sub
If Not Intersect(Target, Range("D4, H7")) Is Nothing Then
If Range("D4").Value = "Supplier" And Range("H7").Value = "Shipment" Then
MsgBox "two conditions are met"
End If
End If
End Sub
However, I need help in enhancing this to include additional message boxes within the same worksheet (which I’ve tried to do and failed). The items I would like to generate message boxes for are:
- if cell A2 is above a certain date
- if either cell E10, F10 or G10 meets a certain criteria (from a dropdown list)
- if the value in cell J5 is over 100000
Most of all, I would like to know how to structure the code such that multiple message boxes can appear in the same worksheet.. really appreciate any help I can get here! Thank you!
Last edited by a moderator: