Warning Message Box

Jimmy110

Board Regular
Joined
Feb 28, 2022
Messages
63
Office Version
  1. 365
Platform
  1. Windows
Hi All,

Looking for some help to create a warning message box. Basically, I have a macro on a shape that when clicked transfers some data to another sheet. What I would like to do is have it flag up a warning box if the value of cell E2 is equal to !!!SELECT LINE & REASON!!! (To prompt the user from running the macro and copying the data if they haven't already picked something other than !!!SELECT LINE & REASON!!! from the drop down list.

Any help appreciated...and please treat me as an absolute beginner....because I am LOL

Thank you

James
 

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.
Hi All,

Looking for some help to create a warning message box. Basically, I have a macro on a shape that when clicked transfers some data to another sheet. What I would like to do is have it flag up a warning box if the value of cell E2 is equal to !!!SELECT LINE & REASON!!! (To prompt the user from running the macro and copying the data if they haven't already picked something other than !!!SELECT LINE & REASON!!! from the drop down list.

Any help appreciated...and please treat me as an absolute beginner....because I am LOL

Thank you

James
Post the macro you are currently using and we can modify it to suit
 
Upvote 0
Put this right near the start of your macro

VBA Code:
If Range("E2").Value = "!!!SELECT LINE & REASON!!!" Then
  MsgBox "Whatever you want the warning to say"
  Exit Sub
End If
 
Upvote 0
Solution
You're welcome. Thanks for the confirmation. :)
 
Upvote 0

Forum statistics

Threads
1,214,985
Messages
6,122,607
Members
449,090
Latest member
vivek chauhan

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