Empty Cell Validation
I have a cell in worksheet that needs to be filled in prior to closing file
OR clicking control to be directed to secondary worksheets. Data validation only provides error messages upon entering a value; I need an error message if the cell is overlooked. TIA for any help, -- C |
Empty Cell Validation
I think I've found the correct code. How's this?
Private Sub Worksheet_OnExit() If Sheet1.Range("A91") = "" Then MsgBox "Please enter contact information at bottom of form." End If End Sub -- C "C" wrote: I have a cell in worksheet that needs to be filled in prior to closing file OR clicking control to be directed to secondary worksheets. Data validation only provides error messages upon entering a value; I need an error message if the cell is overlooked. TIA for any help, -- C |
All times are GMT +1. The time now is 01:56 PM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com