M
Martin Los
I have a 4 worksheets filled with data and mailed to me on
a daily basis. Sometimes a cell is being forgotten to be
filled with a value.
How can I get the person who fills the worksheet cells to
get a notice if he tries to shut the workbook without
having filled all the cells he has to fill?
TIA
Martin
P.S. I think of
Private Sub Workbook_BeforeClose(Cancel As Boolean)
Dim wsh1 As Worksheet
Dim wsh2 As Worksheet
Dim wsh3 As Worksheet
Set wsh1 = Worksheets("Sheet 1")
Set wsh2 = Worksheets("Sheet 2")
Set wsh3 = Worksheets("Sheet 3")
'HERE I NEED A RANGE (CONTAINING ALL CELLS TO BE FILLED IN
THE 4 WORKSHEETS) ANY IDEA HOW?
If wshS1.Cells(6, 6) = "" Then MsgBox "You forgot a
cell!
......
or
varArray = IsEmpty(MiVar) Then MsgBox "You forgot a cell!"
End Sub
a daily basis. Sometimes a cell is being forgotten to be
filled with a value.
How can I get the person who fills the worksheet cells to
get a notice if he tries to shut the workbook without
having filled all the cells he has to fill?
TIA
Martin
P.S. I think of
Private Sub Workbook_BeforeClose(Cancel As Boolean)
Dim wsh1 As Worksheet
Dim wsh2 As Worksheet
Dim wsh3 As Worksheet
Set wsh1 = Worksheets("Sheet 1")
Set wsh2 = Worksheets("Sheet 2")
Set wsh3 = Worksheets("Sheet 3")
'HERE I NEED A RANGE (CONTAINING ALL CELLS TO BE FILLED IN
THE 4 WORKSHEETS) ANY IDEA HOW?
If wshS1.Cells(6, 6) = "" Then MsgBox "You forgot a
cell!
......
or
varArray = IsEmpty(MiVar) Then MsgBox "You forgot a cell!"
End Sub