Dont email form if certain cells are blank

rfrederick62

New Member
Joined
Nov 25, 2014
Messages
7
Good day all, I currently use a macro to send an "Order Form' (an excel sheet) to my Stores. The end-user fills out the form for items then hits a button on the sheet and the sheet is sent to Outlook and waits for the user to hit SEND (they have to c.c. certain people) and then the form goes to Stores email for printing and filling.
The problem is that many people 'forget' to fill out certain information- location , requester and quantity- so I have to return the form and/ or call them for the info - wasting valuable time.
What Id like is if they DO NOT fill in those cells they get a message back ("FORM INCOMPLETE- REDO") and the email process stops and they have to fill these cells in.....and this continues until all pertinent cells have the required information THEN it sends the form to Outlook....

thoughts?
thanks, Rob
 
There is no point in the macro opening Outlook etc (or doing any part of your code for that matter) if the blanks are found. As such I would use my code as the opening arguments as it checks for the blank cells right away and halts the code if blanks are found. You simply need to copy your macro (all of it except the sub name and end sub parts) and paste it on the end of my macro between the ' The rest of your code goes here comment and the end sub.

Obviously feel free to rename the sub back to whatever you want as it has no effect on the macro itself.
 
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

Forum statistics

Threads
1,216,747
Messages
6,132,487
Members
449,729
Latest member
davelevnt

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