Macro for Message Pop-up

rhmkrmi

Active Member
Joined
Aug 17, 2012
Messages
348
Office Version
  1. 365
Platform
  1. Windows
Hi, Can you please help me with a macro that pops up one message when we go into a sheet and another when we move out of that sheet or close the workbook?

In case this is too hard, I can use just the one message.

I also need help adding this macro to some more that already exist in the sheets.

Thank you.
 
Hi Rick,

In range A1:A20 there are drop-down lists and the user can select “Activate” from the list.

In range B1:B20 there are drop-down lists and the user can select “Home” from the list.

If the user selects “Activate” in A1 and “Home” in B1, the pop-up should appear. Also, if the user selects “Home” in B1 and “Activate” in A1, the pop-up should appear.
This applies to all rows in A1:A20 and B1:B20.
The values "Activate" and "Home" should not be selected or exist in the same row next to each other. As soon as this happens, I need the message to pop up.

I do not want it to check when the worksheet activates and/or deactivates.

Please let me know if I need to be more specific.

Thank you.
 
Upvote 0

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest
Also, can I ask how I can make this code to work in range B1:B20 instead of just B20 please? Thank you.

If Cells(1, 2).Value = "" Then
MsgBox "Cell B1 requires user input"
Cancel = True
End If
 
Upvote 0
Hi Rick, Would you get back to me on this or do I log a new thread? Thank you.
 
Upvote 0

Forum statistics

Threads
1,223,902
Messages
6,175,278
Members
452,629
Latest member
SahilPolekar

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