Excel Sheet Lockout
November 23, 2007 11:07 AM Subscribe
I have a spreadsheet that I want to lock after a certain amount of data is entered. It needs to be an auto lockout as I cannot count on the user to stop entering data after a certain point. MI
OK, so let's just say that I have 3 columns with 10 rows. All 30 rows will be filled and when that happens, all editing is disabled.
I was goofing with some VBA with works surprisingly well but how would I get something like this to trigger when cell C10 is filled in?
Here is the little code snippet
Dim dtval
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Address <> dtval Then Target.Formula = dtval
End Sub
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
dtval = Target.Formula
End Sub
>
OK, so let's just say that I have 3 columns with 10 rows. All 30 rows will be filled and when that happens, all editing is disabled.
I was goofing with some VBA with works surprisingly well but how would I get something like this to trigger when cell C10 is filled in?
Here is the little code snippet
Dim dtval
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Address <> dtval Then Target.Formula = dtval
End Sub
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
dtval = Target.Formula
End Sub
>
After you do the loop test and fill in all the blanks all you have to do is have a11 put the data somewhere else and generate a message "on enter" that data collection is complete.
posted by ptm at 2:48 AM on November 24, 2007
posted by ptm at 2:48 AM on November 24, 2007
« Older Authoritative price guide for stamp collecting? | What can I do to get rid of a deep but tiny scar... Newer »
This thread is closed to new comments.
posted by greenmagnet at 12:47 PM on November 23, 2007