Perhaps store the cell values in an xlVeryHidden worksheet
and import them if the password is correct:
Const Pwd As String = "horse"
Private Sub Worksheet_SelectionChange(ByVal Target As
Range)
Dim Resp As Variant, myRange As Range
Set myRange = Range("A1:A10")
If Not Intersect(Target, myRange) Is Nothing Then
If Target.Count = 1 Then
Do Until Resp = Pwd
Resp = InputBox("Enter password to view cell
contents . . .", "Password Entry")
If Resp = "" Then Exit Sub
If Resp = Pwd Then
Target = Sheets("Hidden").Range
(Target.Address)
Else
MsgBox "Password failed !!! ",
vbExclamation, "Password entry"
End If
Loop
End If
End If
End Sub
Regards,
Greg
-----Original Message-----
Is it possible to password protect an individual cell
(rather than the whole sheet) so that some cells appear
blank and if selected they prompt for a password for
viewing?