Creating a spreadsheet with mandatory fields

Joined
May 28, 2010
Messages
2
Reaction score
0
Hi,

I have a spread sheet that people insist on leving cells blank! Is there vba code to make all cells mandatory?

There was this:

Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Address <> "$E$5" Then Exit Sub

If Target.Value = "" Then
MsgBox "Input required!", vbInformation + vbOKOnly, "Warning"
Target.Activate
End If
End Sub

But I want it to go from cell A2 - I2?

Please help?
 

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