Well the code would be something like:
for count = 2 to Range("A" & rows.count).end(xlup).row
if range("A" & count) < date - 7 then Range("A" & count).entirerow.locked = true
next
You would need to assign it to an event, it could be when you open the workbook, when you change a cell etc. I would suggest that running it everytime the workbook opens is probably ok? For that you need:
private sub workbook_open()
for count = 2 to Range("A" & rows.count).end(xlup).row
if range("A" & count) < date - 7 then Range("A" & count).entirerow.locked = true
next
end sub
saved in the "thisworkbook" object module.
Bookmarks