How to create a pop-up reminder when a certain cell is chosen but dependent on a value of another cell?

jenniferTTD

New Member
Joined
May 29, 2019
Messages
2
Hi,

I would like to ask:

How do you create a pop-up reminder when a certain cell is chosen but dependent on a value of another cell?

To be specific, we have the type of service cell J2. "Transportation" and "Guiding" is part of a drop-down menu and every time they are chosen, there is a pop-up reminder. See below VBA:

Private Sub Worksheet_Change(ByVal Target As Range)
If Intersect(Target, Range("J2:J54")) Is Nothing Then Exit Sub
If Target.Value = "Transportation" Then
MsgBox "TRANSPORTATION: Remember to include VAT, as well as any additional costs, such as toll and parking fees, ferry tickets, water bottles, etc."
ElseIf Target.Value = "Guiding" Then
MsgBox "GUIDING: Remember to include any additional costs, such as entrance fees, tickets, city passes, coffee/tea/water, snacks, etc."Ho
End If
End Sub

My question is: Can we move the pop-up reminder to appear in a different cell, in this case, where the price should be written (Range: N2:N54)? Every time a price is written in the price range (N2:N54) the pop-up reminder should appear GIVEN that the type of service (range J2:J54) is only either "Transportation" or "Guiding"?


I appreciate any help I can get. Sorry, I am not well versed with excel and it seems complicated since there is a condition to be met. Thank you! :-)
 

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
Something like this should work (untested)

Code:
Private Sub Worksheet_Change(ByVal Target As Range)
If Intersect(Target, Range("N2:N54")) Is Nothing Then Exit Sub
If Range("J" & Target.Row).Value = "Transportation" Then
MsgBox "TRANSPORTATION: Remember to include VAT, as well as any additional costs, such as toll and parking fees, ferry tickets, water bottles, etc."
ElseIf Range("J" & Target.Row).Value = "Guiding" Then
MsgBox "GUIDING: Remember to include any additional costs, such as entrance fees, tickets, city passes, coffee/tea/water, snacks, etc."
End If
End Sub
 
Upvote 0
Something like this should work (untested)

Code:
Private Sub Worksheet_Change(ByVal Target As Range)
If Intersect(Target, Range("N2:N54")) Is Nothing Then Exit Sub
If Range("J" & Target.Row).Value = "Transportation" Then
MsgBox "TRANSPORTATION: Remember to include VAT, as well as any additional costs, such as toll and parking fees, ferry tickets, water bottles, etc."
ElseIf Range("J" & Target.Row).Value = "Guiding" Then
MsgBox "GUIDING: Remember to include any additional costs, such as entrance fees, tickets, city passes, coffee/tea/water, snacks, etc."
End If
End Sub

It worked exactly like how I wanted it to be! Thank you so much!! :-)
 
Upvote 0
You are very welcome and thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,223,227
Messages
6,170,848
Members
452,361
Latest member
d3ad3y3

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top