Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
bill gillan
 
Posts: n/a
Default individual cell protection

I wish to allow people to enter data etc into a cell, but once entered, that
information can be deleted.

Any help would be greatly appreciated.

Thanks

Bill
  #2   Report Post  
Peo Sjoblom
 
Posts: n/a
Default

Do you mean "but once entered information cannot be deleted"?

--
Regards,

Peo Sjoblom

(No private emails please)


"bill gillan" <bill wrote in message
...
I wish to allow people to enter data etc into a cell, but once entered,
that
information can be deleted.

Any help would be greatly appreciated.

Thanks

Bill


  #3   Report Post  
bill gillan
 
Posts: n/a
Default

Thanks for your response. Yes, what I want is to allow staff to enter data
into cells but not be able to then delete that information after they have
entered. Therefore have "input permission" but not deletion. I hope this
makes sense.

Regards

Bill


"Peo Sjoblom" wrote:

Do you mean "but once entered information cannot be deleted"?

--
Regards,

Peo Sjoblom

(No private emails please)


"bill gillan" <bill wrote in message
...
I wish to allow people to enter data etc into a cell, but once entered,
that
information can be deleted.

Any help would be greatly appreciated.

Thanks

Bill



  #4   Report Post  
Dave Peterson
 
Posts: n/a
Default

How do they fix a typo?

But if you want...

rightclick on the worksheet tab that should have this behavior. Select view
code and paste this in the code window.

Option Explicit
Private Sub Worksheet_Change(ByVal Target As Range)

Dim myCell As Range
Me.Unprotect Password:="hi"
For Each myCell In Target.Cells
If myCell.Value = "" Then
'do nothing
Else
myCell.Locked = True
End If
Next myCell
Me.Protect Password:="hi"

End Sub

Change the password in both spots.

If you're new to macros, you may want to read David McRitchie's intro at:
http://www.mvps.org/dmcritchie/excel/getstarted.htm

bill gillan wrote:

Thanks for your response. Yes, what I want is to allow staff to enter data
into cells but not be able to then delete that information after they have
entered. Therefore have "input permission" but not deletion. I hope this
makes sense.

Regards

Bill

"Peo Sjoblom" wrote:

Do you mean "but once entered information cannot be deleted"?

--
Regards,

Peo Sjoblom

(No private emails please)


"bill gillan" <bill wrote in message
...
I wish to allow people to enter data etc into a cell, but once entered,
that
information can be deleted.

Any help would be greatly appreciated.

Thanks

Bill




--

Dave Peterson
  #5   Report Post  
bill gillan
 
Posts: n/a
Default

Hi Dave

Thanks for your reply. It has not quiet worked how I wanted it to. If I
explain what I want then maybe it will help. I want to create a form that
staff will be required to input data into. There will be a range of cells
where they have to enter data. The columns will be C & D with rows 1 to 20.
So if they were to enter a figure in column C3 once entered they cannot
change it. I have pasted your code into the spreadsheet. It allowed me to
enter into a cell once but then not delete it. When I went to test this in
another cell I could not enter or delete. Any more advice/help would be
greatly appreciated. I do thank your for your time.

Regards

Bill

"Dave Peterson" wrote:

How do they fix a typo?

But if you want...

rightclick on the worksheet tab that should have this behavior. Select view
code and paste this in the code window.

Option Explicit
Private Sub Worksheet_Change(ByVal Target As Range)

Dim myCell As Range
Me.Unprotect Password:="hi"
For Each myCell In Target.Cells
If myCell.Value = "" Then
'do nothing
Else
myCell.Locked = True
End If
Next myCell
Me.Protect Password:="hi"

End Sub

Change the password in both spots.

If you're new to macros, you may want to read David McRitchie's intro at:
http://www.mvps.org/dmcritchie/excel/getstarted.htm

bill gillan wrote:

Thanks for your response. Yes, what I want is to allow staff to enter data
into cells but not be able to then delete that information after they have
entered. Therefore have "input permission" but not deletion. I hope this
makes sense.

Regards

Bill

"Peo Sjoblom" wrote:

Do you mean "but once entered information cannot be deleted"?

--
Regards,

Peo Sjoblom

(No private emails please)


"bill gillan" <bill wrote in message
...
I wish to allow people to enter data etc into a cell, but once entered,
that
information can be deleted.

Any help would be greatly appreciated.

Thanks

Bill



--

Dave Peterson



  #6   Report Post  
Dave Peterson
 
Posts: n/a
Default

The first thing you have to do is lock the cells that can't be changed
(formulas/headers/instructions). And unlock all those cells (C1:d20) that can
be changed once.

Then give it a try.

bill gillan wrote:

Hi Dave

Thanks for your reply. It has not quiet worked how I wanted it to. If I
explain what I want then maybe it will help. I want to create a form that
staff will be required to input data into. There will be a range of cells
where they have to enter data. The columns will be C & D with rows 1 to 20.
So if they were to enter a figure in column C3 once entered they cannot
change it. I have pasted your code into the spreadsheet. It allowed me to
enter into a cell once but then not delete it. When I went to test this in
another cell I could not enter or delete. Any more advice/help would be
greatly appreciated. I do thank your for your time.

Regards

Bill

"Dave Peterson" wrote:

How do they fix a typo?

But if you want...

rightclick on the worksheet tab that should have this behavior. Select view
code and paste this in the code window.

Option Explicit
Private Sub Worksheet_Change(ByVal Target As Range)

Dim myCell As Range
Me.Unprotect Password:="hi"
For Each myCell In Target.Cells
If myCell.Value = "" Then
'do nothing
Else
myCell.Locked = True
End If
Next myCell
Me.Protect Password:="hi"

End Sub

Change the password in both spots.

If you're new to macros, you may want to read David McRitchie's intro at:
http://www.mvps.org/dmcritchie/excel/getstarted.htm

bill gillan wrote:

Thanks for your response. Yes, what I want is to allow staff to enter data
into cells but not be able to then delete that information after they have
entered. Therefore have "input permission" but not deletion. I hope this
makes sense.

Regards

Bill

"Peo Sjoblom" wrote:

Do you mean "but once entered information cannot be deleted"?

--
Regards,

Peo Sjoblom

(No private emails please)


"bill gillan" <bill wrote in message
...
I wish to allow people to enter data etc into a cell, but once entered,
that
information can be deleted.

Any help would be greatly appreciated.

Thanks

Bill



--

Dave Peterson


--

Dave Peterson
  #7   Report Post  
Posted to microsoft.public.excel.misc
Jason
 
Posts: n/a
Default individual cell protection

This is great. Is there a way to protect only one set of cells while
allowing input and reinput into other sections of the spreadsheet?

"Dave Peterson" wrote:

The first thing you have to do is lock the cells that can't be changed
(formulas/headers/instructions). And unlock all those cells (C1:d20) that can
be changed once.

Then give it a try.

bill gillan wrote:

Hi Dave

Thanks for your reply. It has not quiet worked how I wanted it to. If I
explain what I want then maybe it will help. I want to create a form that
staff will be required to input data into. There will be a range of cells
where they have to enter data. The columns will be C & D with rows 1 to 20.
So if they were to enter a figure in column C3 once entered they cannot
change it. I have pasted your code into the spreadsheet. It allowed me to
enter into a cell once but then not delete it. When I went to test this in
another cell I could not enter or delete. Any more advice/help would be
greatly appreciated. I do thank your for your time.

Regards

Bill

"Dave Peterson" wrote:

How do they fix a typo?

But if you want...

rightclick on the worksheet tab that should have this behavior. Select view
code and paste this in the code window.

Option Explicit
Private Sub Worksheet_Change(ByVal Target As Range)

Dim myCell As Range
Me.Unprotect Password:="hi"
For Each myCell In Target.Cells
If myCell.Value = "" Then
'do nothing
Else
myCell.Locked = True
End If
Next myCell
Me.Protect Password:="hi"

End Sub

Change the password in both spots.

If you're new to macros, you may want to read David McRitchie's intro at:
http://www.mvps.org/dmcritchie/excel/getstarted.htm

bill gillan wrote:

Thanks for your response. Yes, what I want is to allow staff to enter data
into cells but not be able to then delete that information after they have
entered. Therefore have "input permission" but not deletion. I hope this
makes sense.

Regards

Bill

"Peo Sjoblom" wrote:

Do you mean "but once entered information cannot be deleted"?

--
Regards,

Peo Sjoblom

(No private emails please)


"bill gillan" <bill wrote in message
...
I wish to allow people to enter data etc into a cell, but once entered,
that
information can be deleted.

Any help would be greatly appreciated.

Thanks

Bill



--

Dave Peterson


--

Dave Peterson

  #8   Report Post  
Posted to microsoft.public.excel.misc
Dave Peterson
 
Posts: n/a
Default individual cell protection

You can lock/unlock any cell you want (format|cells|protection tab)

Then protect the worksheet (tools|protection|protect sheet)

Any unlocked cell can have its contents changed. And locked cell will be, er,
locked.

If you have lots of unprotected or lots of protected cells, you can select them
all (ctrl-a twice or three times), the change that setting to what you want.

Then come back and select the cells that are different and change that setting.

Then protect the worksheet.

Jason wrote:

This is great. Is there a way to protect only one set of cells while
allowing input and reinput into other sections of the spreadsheet?

"Dave Peterson" wrote:

The first thing you have to do is lock the cells that can't be changed
(formulas/headers/instructions). And unlock all those cells (C1:d20) that can
be changed once.

Then give it a try.

bill gillan wrote:

Hi Dave

Thanks for your reply. It has not quiet worked how I wanted it to. If I
explain what I want then maybe it will help. I want to create a form that
staff will be required to input data into. There will be a range of cells
where they have to enter data. The columns will be C & D with rows 1 to 20.
So if they were to enter a figure in column C3 once entered they cannot
change it. I have pasted your code into the spreadsheet. It allowed me to
enter into a cell once but then not delete it. When I went to test this in
another cell I could not enter or delete. Any more advice/help would be
greatly appreciated. I do thank your for your time.

Regards

Bill

"Dave Peterson" wrote:

How do they fix a typo?

But if you want...

rightclick on the worksheet tab that should have this behavior. Select view
code and paste this in the code window.

Option Explicit
Private Sub Worksheet_Change(ByVal Target As Range)

Dim myCell As Range
Me.Unprotect Password:="hi"
For Each myCell In Target.Cells
If myCell.Value = "" Then
'do nothing
Else
myCell.Locked = True
End If
Next myCell
Me.Protect Password:="hi"

End Sub

Change the password in both spots.

If you're new to macros, you may want to read David McRitchie's intro at:
http://www.mvps.org/dmcritchie/excel/getstarted.htm

bill gillan wrote:

Thanks for your response. Yes, what I want is to allow staff to enter data
into cells but not be able to then delete that information after they have
entered. Therefore have "input permission" but not deletion. I hope this
makes sense.

Regards

Bill

"Peo Sjoblom" wrote:

Do you mean "but once entered information cannot be deleted"?

--
Regards,

Peo Sjoblom

(No private emails please)


"bill gillan" <bill wrote in message
...
I wish to allow people to enter data etc into a cell, but once entered,
that
information can be deleted.

Any help would be greatly appreciated.

Thanks

Bill



--

Dave Peterson


--

Dave Peterson


--

Dave Peterson
  #9   Report Post  
Posted to microsoft.public.excel.misc
Jason
 
Posts: n/a
Default individual cell protection

Thanks. To be more specific, I have a spreadsheet that has input into 7
different columns and I want only one column to be protected so that once the
data is entered, it cannot be changed. (I was successful at this based on
the directions below) However, I would like the other columns to be able to
be changed going forward. In the code you provided below, can there be a
range specified that the code would apply to only and not impact the rest of
the spreadsheet?

"Dave Peterson" wrote:

You can lock/unlock any cell you want (format|cells|protection tab)

Then protect the worksheet (tools|protection|protect sheet)

Any unlocked cell can have its contents changed. And locked cell will be, er,
locked.

If you have lots of unprotected or lots of protected cells, you can select them
all (ctrl-a twice or three times), the change that setting to what you want.

Then come back and select the cells that are different and change that setting.

Then protect the worksheet.

Jason wrote:

This is great. Is there a way to protect only one set of cells while
allowing input and reinput into other sections of the spreadsheet?

"Dave Peterson" wrote:

The first thing you have to do is lock the cells that can't be changed
(formulas/headers/instructions). And unlock all those cells (C1:d20) that can
be changed once.

Then give it a try.

bill gillan wrote:

Hi Dave

Thanks for your reply. It has not quiet worked how I wanted it to. If I
explain what I want then maybe it will help. I want to create a form that
staff will be required to input data into. There will be a range of cells
where they have to enter data. The columns will be C & D with rows 1 to 20.
So if they were to enter a figure in column C3 once entered they cannot
change it. I have pasted your code into the spreadsheet. It allowed me to
enter into a cell once but then not delete it. When I went to test this in
another cell I could not enter or delete. Any more advice/help would be
greatly appreciated. I do thank your for your time.

Regards

Bill

"Dave Peterson" wrote:

How do they fix a typo?

But if you want...

rightclick on the worksheet tab that should have this behavior. Select view
code and paste this in the code window.

Option Explicit
Private Sub Worksheet_Change(ByVal Target As Range)

Dim myCell As Range
Me.Unprotect Password:="hi"
For Each myCell In Target.Cells
If myCell.Value = "" Then
'do nothing
Else
myCell.Locked = True
End If
Next myCell
Me.Protect Password:="hi"

End Sub

Change the password in both spots.

If you're new to macros, you may want to read David McRitchie's intro at:
http://www.mvps.org/dmcritchie/excel/getstarted.htm

bill gillan wrote:

Thanks for your response. Yes, what I want is to allow staff to enter data
into cells but not be able to then delete that information after they have
entered. Therefore have "input permission" but not deletion. I hope this
makes sense.

Regards

Bill

"Peo Sjoblom" wrote:

Do you mean "but once entered information cannot be deleted"?

--
Regards,

Peo Sjoblom

(No private emails please)


"bill gillan" <bill wrote in message
...
I wish to allow people to enter data etc into a cell, but once entered,
that
information can be deleted.

Any help would be greatly appreciated.

Thanks

Bill



--

Dave Peterson


--

Dave Peterson


--

Dave Peterson

  #10   Report Post  
Posted to microsoft.public.excel.misc
Dave Peterson
 
Posts: n/a
Default individual cell protection

Lock/unlock all the cells you want. But leave some cells unlocked in your
column (where the user can make changes).

Then protect the worksheet.

Then this code may work the way you want:

Option Explicit
Private Sub Worksheet_Change(ByVal Target As Range)

Dim myRng As Range
Dim myCell As Range

Set myRng = Me.Range("c:C")

If Intersect(Target, myRng) Is Nothing Then
Exit Sub
End If

Me.Unprotect Password:="hi"
For Each myCell In Target.Cells
If myCell.Value = "" Then
'do nothing
Else
myCell.Locked = True
End If
Next myCell
Me.Protect Password:="hi"

End Sub


Jason wrote:

Thanks. To be more specific, I have a spreadsheet that has input into 7
different columns and I want only one column to be protected so that once the
data is entered, it cannot be changed. (I was successful at this based on
the directions below) However, I would like the other columns to be able to
be changed going forward. In the code you provided below, can there be a
range specified that the code would apply to only and not impact the rest of
the spreadsheet?

"Dave Peterson" wrote:

You can lock/unlock any cell you want (format|cells|protection tab)

Then protect the worksheet (tools|protection|protect sheet)

Any unlocked cell can have its contents changed. And locked cell will be, er,
locked.

If you have lots of unprotected or lots of protected cells, you can select them
all (ctrl-a twice or three times), the change that setting to what you want.

Then come back and select the cells that are different and change that setting.

Then protect the worksheet.

Jason wrote:

This is great. Is there a way to protect only one set of cells while
allowing input and reinput into other sections of the spreadsheet?

"Dave Peterson" wrote:

The first thing you have to do is lock the cells that can't be changed
(formulas/headers/instructions). And unlock all those cells (C1:d20) that can
be changed once.

Then give it a try.

bill gillan wrote:

Hi Dave

Thanks for your reply. It has not quiet worked how I wanted it to. If I
explain what I want then maybe it will help. I want to create a form that
staff will be required to input data into. There will be a range of cells
where they have to enter data. The columns will be C & D with rows 1 to 20.
So if they were to enter a figure in column C3 once entered they cannot
change it. I have pasted your code into the spreadsheet. It allowed me to
enter into a cell once but then not delete it. When I went to test this in
another cell I could not enter or delete. Any more advice/help would be
greatly appreciated. I do thank your for your time.

Regards

Bill

"Dave Peterson" wrote:

How do they fix a typo?

But if you want...

rightclick on the worksheet tab that should have this behavior. Select view
code and paste this in the code window.

Option Explicit
Private Sub Worksheet_Change(ByVal Target As Range)

Dim myCell As Range
Me.Unprotect Password:="hi"
For Each myCell In Target.Cells
If myCell.Value = "" Then
'do nothing
Else
myCell.Locked = True
End If
Next myCell
Me.Protect Password:="hi"

End Sub

Change the password in both spots.

If you're new to macros, you may want to read David McRitchie's intro at:
http://www.mvps.org/dmcritchie/excel/getstarted.htm

bill gillan wrote:

Thanks for your response. Yes, what I want is to allow staff to enter data
into cells but not be able to then delete that information after they have
entered. Therefore have "input permission" but not deletion. I hope this
makes sense.

Regards

Bill

"Peo Sjoblom" wrote:

Do you mean "but once entered information cannot be deleted"?

--
Regards,

Peo Sjoblom

(No private emails please)


"bill gillan" <bill wrote in message
...
I wish to allow people to enter data etc into a cell, but once entered,
that
information can be deleted.

Any help would be greatly appreciated.

Thanks

Bill



--

Dave Peterson


--

Dave Peterson


--

Dave Peterson


--

Dave Peterson


  #11   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default individual cell protection

This is great exactly what i needed also, their is one exception. How do I
get it to function with a shared workbook. I have it set up in my CNC
department for entering recut information. I have 4 computers that use the
same file on the network.

"Dave Peterson" wrote:

Lock/unlock all the cells you want. But leave some cells unlocked in your
column (where the user can make changes).

Then protect the worksheet.

Then this code may work the way you want:

Option Explicit
Private Sub Worksheet_Change(ByVal Target As Range)

Dim myRng As Range
Dim myCell As Range

Set myRng = Me.Range("c:C")

If Intersect(Target, myRng) Is Nothing Then
Exit Sub
End If

Me.Unprotect Password:="hi"
For Each myCell In Target.Cells
If myCell.Value = "" Then
'do nothing
Else
myCell.Locked = True
End If
Next myCell
Me.Protect Password:="hi"

End Sub


Jason wrote:

Thanks. To be more specific, I have a spreadsheet that has input into 7
different columns and I want only one column to be protected so that once the
data is entered, it cannot be changed. (I was successful at this based on
the directions below) However, I would like the other columns to be able to
be changed going forward. In the code you provided below, can there be a
range specified that the code would apply to only and not impact the rest of
the spreadsheet?

"Dave Peterson" wrote:

You can lock/unlock any cell you want (format|cells|protection tab)

Then protect the worksheet (tools|protection|protect sheet)

Any unlocked cell can have its contents changed. And locked cell will be, er,
locked.

If you have lots of unprotected or lots of protected cells, you can select them
all (ctrl-a twice or three times), the change that setting to what you want.

Then come back and select the cells that are different and change that setting.

Then protect the worksheet.

Jason wrote:

This is great. Is there a way to protect only one set of cells while
allowing input and reinput into other sections of the spreadsheet?

"Dave Peterson" wrote:

The first thing you have to do is lock the cells that can't be changed
(formulas/headers/instructions). And unlock all those cells (C1:d20) that can
be changed once.

Then give it a try.

bill gillan wrote:

Hi Dave

Thanks for your reply. It has not quiet worked how I wanted it to. If I
explain what I want then maybe it will help. I want to create a form that
staff will be required to input data into. There will be a range of cells
where they have to enter data. The columns will be C & D with rows 1 to 20.
So if they were to enter a figure in column C3 once entered they cannot
change it. I have pasted your code into the spreadsheet. It allowed me to
enter into a cell once but then not delete it. When I went to test this in
another cell I could not enter or delete. Any more advice/help would be
greatly appreciated. I do thank your for your time.

Regards

Bill

"Dave Peterson" wrote:

How do they fix a typo?

But if you want...

rightclick on the worksheet tab that should have this behavior. Select view
code and paste this in the code window.

Option Explicit
Private Sub Worksheet_Change(ByVal Target As Range)

Dim myCell As Range
Me.Unprotect Password:="hi"
For Each myCell In Target.Cells
If myCell.Value = "" Then
'do nothing
Else
myCell.Locked = True
End If
Next myCell
Me.Protect Password:="hi"

End Sub

Change the password in both spots.

If you're new to macros, you may want to read David McRitchie's intro at:
http://www.mvps.org/dmcritchie/excel/getstarted.htm

bill gillan wrote:

Thanks for your response. Yes, what I want is to allow staff to enter data
into cells but not be able to then delete that information after they have
entered. Therefore have "input permission" but not deletion. I hope this
makes sense.

Regards

Bill

"Peo Sjoblom" wrote:

Do you mean "but once entered information cannot be deleted"?

--
Regards,

Peo Sjoblom

(No private emails please)


"bill gillan" <bill wrote in message
...
I wish to allow people to enter data etc into a cell, but once entered,
that
information can be deleted.

Any help would be greatly appreciated.

Thanks

Bill



--

Dave Peterson


--

Dave Peterson


--

Dave Peterson


--

Dave Peterson

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Cell Protection biglautz Excel Worksheet Functions 3 May 23rd 05 11:38 PM
Cell protection in Excel is lost when file is uploaded to website. Mandrake Excel Discussion (Misc queries) 0 March 15th 05 04:53 PM
Conditional Cell Protection Gyges Excel Discussion (Misc queries) 1 March 9th 05 08:43 PM
watermark in an individual cell Jim Excel Worksheet Functions 1 February 4th 05 01:34 AM
format cell protection Swan Excel Worksheet Functions 1 February 2nd 05 02:36 AM


All times are GMT +1. The time now is 10:47 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"