Pop up box required

ABU_HASAN

New Member
Joined
Jun 27, 2017
Messages
16
Dear Sir

I make Invoice in excel and i need a pop up box with message "E WAY BILL REQUIRED" when below conditions are met

When Total INV VALUE cell "L44" >= 100001 and CGST Value cell "L42" =>1 then box should pop up

In the same Invoice
When "IGST" value cell "L40" >=1 and Inv Value "L44" >= 50000 then box should pop up.

Basically
1. box should pop up when igst cell is not empty and inv value is >=50000
2. box should pop up when cgst cell is not empty and inv value is >=100001

Kindly help!!!
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
Do you want it as a message box where the user clicks an "OK" button to clear?
 
Upvote 0
Do you already have any VBa code in use?
 
Upvote 0
Code:
' make Invoice in excel and i need a pop up box with message "E WAY BILL REQUIRED" when below conditions are met
'
'When Total INV VALUE cell "L44" >= 100001 and CGST Value cell "L42" =>1 then box should pop up
'
'In the same Invoice
'When "IGST" value cell "L40" >=1 and Inv Value "L44" >= 50000 then box should pop up.
'
'Basically
'1. box should pop up when igst cell is not empty and inv value is >=50000
'2. box should pop up when cgst cell is not empty and inv value is >=100001


Sub MsgPopup()
If IsEmpty(Range("L40").Value) = False And IsEmpty(Range("L44").Value) = False Then
    If Range("L40").Value >= 1 And Range("L44").Value >= 50000 Then
        MsgBox "E WAY BILL REQUIRED", vbOKOnly, ThisWorkbook.Name
    End If
End If
End Sub
 
Upvote 0
Code:
' make Invoice in excel and i need a pop up box with message "E WAY BILL REQUIRED" when below conditions are met
'
'When Total INV VALUE cell "L44" >= 100001 and CGST Value cell "L42" =>1 then box should pop up
'
'In the same Invoice
'When "IGST" value cell "L40" >=1 and Inv Value "L44" >= 50000 then box should pop up.
'
'Basically
'1. box should pop up when igst cell is not empty and inv value is >=50000
'2. box should pop up when cgst cell is not empty and inv value is >=100001


Sub MsgPopup()
If IsEmpty(Range("L40").Value) = False And IsEmpty(Range("L44").Value) = False Then
    If Range("L40").Value >= 1 And Range("L44").Value >= 50000 Then
        MsgBox "E WAY BILL REQUIRED", vbOKOnly, ThisWorkbook.Name
    End If
End If
End Sub

Thanks a lot it works
 
Upvote 0

Forum statistics

Threads
1,216,765
Messages
6,132,589
Members
449,737
Latest member
naes

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