disable save event if condition not met

ninjabass

New Member
Joined
Apr 5, 2011
Messages
2
Hi all,

I tried posting the text below on another forum but no one seemed to be able to help, Hope someone here can steer me in the right direction!


Have what probably a fairly simple question but I'm pretty much a beginner at excel so the answer is eluding me, hope someone can help ...

Here's what I want to do:

if cell B18 contains any data then cell F18 must be filled in else don't allow sheet to be saved AND/OR don't allow user to move to next row

Couple of things that may or not make a difference:

1. The selection in B18 is from a named range (part) without a drop down list.
2. The selection in F18 is from a named range (REASONCODE) with a drop down list.

So, to make it a little clearer.

The sheet is used to return obsolete stock back to our warehouse. B18 contains the part number and F18 contains a reason code. We don't want to allow stock to be sent back without a valid reason code....

Thanks for taking the time to read through my query and hope you can help!
 

Some videos you may like

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number

Watch MrExcel Video

Forum statistics

Threads
1,109,436
Messages
5,528,749
Members
409,834
Latest member
vexceled

This Week's Hot Topics

  • Change military grades into rank
    Afternoon all Need help with formula that will change military rank (i.e. 1, 2, 3 into Amn, A1C, SrA). Running IF formula that does not work...
  • VBA COUNTIF SOLUTION
    Hi The following are the errors spread across the several columns from E to Q ie. 13 columns across several sheets with more than 500 rows per...
  • INSERT ROW WITH SPECIFIS TEXT IN A COLUMN
    Hi All! How can identify that that the row to be inserted has to be inserted before 1st row with specific text in column F. If I record the...
  • Auto-Create a monthly Sign in sheet for preschool students
    The image below is what each page looks like. Above is space for the "Child Name" "Month" "Class" School days are obviously Monday-Friday but...
  • VBA vlookup multiple results
    Hi folks, Hopefully someone out there can help. I have a list to vlookup which works (ish). the lookup only picks up the first instance of the...
  • Extract values for earliest/latest times
    I am trying to put together a formula to get the earliest start time, the latest end time from column A for each person in Column B-F without the...
Top