Making Cells mandatory

G

Guest

I am looking for some help with making some cells mandatory. I have created
a small expense report with approx. 20 lines. On each line, if a user enters
a expense date, I want to make the “Attendee†field mandatory.
I originally thought I could trigger this when printing the form; however,
it is possible the user may just e-mail it.
Besides activating this validation, I am also having problem with the
validation itself.

Any help would be greatly appreciated.
 
G

Guest

Have you considered using a Form for the input of the data items (rather than
directly into the spreadsheet)? If you used a form,
1. you can validate each item on exit and all items when the user select
say the 'Post Record' button (this will write the data to the worksheet)
2. AND you could hide the Excel object while the form was active thereby
dissallowing the emailing.
 
G

Guest

Yes. However, I am working with an existing form that the users are
accustomed to and would prefer to use. That is why I am trying to do this in
the spreadsheet itself.

Any ideas?
 
G

Guest

You could write a sub in the code behind the sheet using _change or _calculate.

A simple set of IFs could bring up a warning message and highlight the
offended empty cell.
 
O

Otto Moehrbach

Kathy
You could use a Workbook_BeforeSave event macro to check for the entries
you want. That way, the user would be unable to save the file if your
criteria is not met. You would include one or more message boxes explaining
to the user what the problem is. HTH Otto

HTH Otto
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top