Macro - VBA - to display message based on condition

umeshbanga

New Member
Joined
Sep 14, 2014
Messages
4
Hi


I have the attached table. When user press submit button,
I want to display the following message


Based on the column C, "Add or Remove":
Thanks for your license request.
You have requested to add the following modules:
Text1, Text3, and Text 4 (Quantity 5), Text 5 (Quantity 5)


You have requested to remove the following modules:
Text 4 and Text 6 (Qty-5)


Your next month bill will increase by $6.00
(if the bill is reducing i.e. Licence Cost Change is negative then the following message)
Your next month bill will decrease by $6.00


Please let me know if you need more information.
Regards
 

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.
does that presume only one licence request, as you are not specifying multiples or reduced ownership costs for bulk
 
Upvote 0
Cross posted https://www.excelforum.com/excel-pr...ba-to-display-message-based-on-condition.html

While we do not prohibit Cross-Posting on this site, we do ask that you please mention you are doing so and provide links in each of the threads pointing to the other thread (see rule 13 here along with the explanation: Forum Rules).
This way, other members can see what has already been done in regards to a question, and do not waste time working on a question that may already be answered.
 
Upvote 0
longer established users can usually modify the thread within a few minutes, beyond that you cannot. This stops members restating their question weeks after changing the context
 
Upvote 0

Forum statistics

Threads
1,224,817
Messages
6,181,148
Members
453,021
Latest member
Justyna P

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