View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Alan McQuaid via OfficeKB.com Alan McQuaid via OfficeKB.com is offline
external usenet poster
 
Posts: 25
Default Requiring multiple cells to be populated before allowing Save

Hi Bob,

You could try:

For Each iCell In Sheets("Sheet1").Range("M2:M25")
If IsEmpty(Sheets("Sheet1").Range(iCell.Address)) Then
Cancel = True
MsgBox ("The workbook cannot be saved until cell " & iCell.Address & " has
been populated.")
Exit Sub
End If
Next iCell


Alan

--
Message posted via http://www.officekb.com