Creating Error popup button

Raj2003

New Member
Joined
Nov 15, 2018
Messages
19
Hi everyone,

I need help in creating popup button for certain error...
Error : If cell value is 1 for 2 consecutive cells in a particular column.. error message button should popup

Regards
Keen learner
 
Try this:
Not sure why you want it this way but here is what you were trying to do.
VBA Code:
Private Sub Worksheet_Change(ByVal Target As Range)
'Modified  12/17/2020  4:32:32 PM  EST
If Target.Cells.CountLarge > 1 Or IsEmpty(Target) Then Exit Sub

    If Target.Column = 1 Then

        If Target.Value = Target.Offset(-1).Value Then MsgBox "Different Pairs Found" & vbNewLine & "In the cells above"
End If
End Sub
Hi everyone,

Let me describe my issue again clearly with proper Screen Shots.I have Order ID in Column A & column B is extracted value from Column A using =RIGHT() FORMULA. Column C is having countif() formula. So what i need is : If column B gets two different Orders , Error msg box should popup.
1608311751045.png
 
Upvote 0

Excel Facts

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type
Hi everyone,

Let me describe my issue again clearly with proper Screen Shots.I have Order ID in Column A & column B is extracted value from Column A using =RIGHT() FORMULA. Column C is having countif() formula. So what i need is : If column B gets two different Orders , Error msg box should popup.
View attachment 28239
Hi der,

The values in Column A will always be in Pair
 

Attachments

  • 1608312613801.png
    1608312613801.png
    135.4 KB · Views: 3
Upvote 0
Not sure why someone is marking this answer as solved and it appears as if one of my postings have been removed.
So:
This is beyond my knowledgebase.
I will continue to monitor this thread to see what I can learn.
 
Upvote 0
Hi everyone,

Let me describe my issue again clearly with proper Screen Shots.I have Order ID in Column A & column B is extracted value from Column A using =RIGHT() FORMULA. Column C is having countif() formula. So what i need is : If column B gets two different Orders , Error msg box should popup.
View attachment 28239
Hi der,

can anyone please help me with the problem here....
 
Upvote 0

Forum statistics

Threads
1,215,066
Messages
6,122,948
Members
449,095
Latest member
nmaske

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