Managed to get the following script from this forum.
However, i need to validate a list of different cells, instead of 1 cell. I tried to specify the range by rngCheck = wsCheck.Range("A1":"A13"). But it does not seem to work at all.
Can someone please help? Thank you so much!!
[VBA]Option Explicit
Private Sub Workbook_SheetDeactivate(ByVal Sh As Object)
'Macro created 07/06/2005 21:29 by Ken Puls
'Macro Purpose: Force a user to enter a value in Range A1
' on Sheet1 before leaving the sheet
Dim wsCheck As Worksheet
Dim rngCheck As Range
'Set the ranges you want to check here
Set wsCheck = Worksheets("Sheet1")
Set rngCheck = wsCheck.Range("A1")
'Turn off events to avoid triggering a loop
Application.EnableEvents = False
'Check if user is leaving Sheet1
If Sh.Name = wsCheck.Name Then
'Check if Range A1 is empty
If IsEmpty(rngCheck) Then
'If so, reactivate the sheet, select the cell, and
'tell user they must enter a value
wsCheck.Activate
rngCheck.Select
MsgBox "Sorry, you must enter a value in " & rngCheck.Address
End If
End If
'Restore events
Application.EnableEvents = True
End Sub[/VBA]