Another version:
I'd set up my worksheet first.
Ctrl-a to select all the cells (ctrl-a twice in xl2003).
Then format|cells|protection Tab|Uncheck Locked)
So now all the cells are unlocked.
Then use this variation of Ron's code:
Option Explicit
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Cells.Count > 1 Then Exit Sub
If Application.Intersect(Me.Range("H:H"), Target) Is Nothing Then Exit Sub
If IsEmpty(Target) Then Exit Sub
With Target
If .Locked = True Then
'then they shouldn't have been able to change this cell!
'so this shouldn't happen
Exit Sub
Else
Me.Unprotect Password:="hi"
.EntireRow.Cells.Locked = True
Me.Protect Password:="hi"
End If
End With
End Sub
This version locks the entirerow as soon as you type anything in column H. And
since H is locked on a protected sheet, you can't change that cell--so you don't
need to check it anymore.
That said, worksheet protection is very weak. There's code posted here every
day/week that would unprotect the worksheet.
shhhh:
From J.E. McGimpsey's site:
http://www.mcgimpsey.com/excel/removepwords.html