Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 50
Default Protect cells but allow for user input.

I want to create a form to input data (either copy and pasted from another
workbook or simply typed in). There will be a range of cells where to enter
data (columns A:G) that will be unprotected; the rest of the worksheet will
be protected. Is there a sub routine that I could apply in the code window
that will allow the user to manipulate the input data in any way other than
deleting whole rows, whole columns, or removing cells by cutting them,
cutting rows or cutting columns. That way for columns A:G the user could
type/paste data, delete or clear contents, but not delete or cut
cells/rows/columns such that other cells would shift in the process. Any
advice would be greatly appreciated.

IP
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 46
Default Protect cells but allow for user input.

All you need to do is unlock the cells that you want the user to be able to
input to, and Protect the sheet. That stops people from deleting any rows or
columns in the sheet, even rows & columns that have unlocked cells. Users
would still be able to delete the whole sheet, so to prevent that you would
Protect the workbook (This all works in version 2003, anyway).

By the way, if you are going to Protect, you should put a password on the
protection; otherwise it isn't really protection at all (like giving a
soldier a gun but no bullets).
--
Time is just the thing that keeps everything from happening all at once


"iperlovsky" wrote:

I want to create a form to input data (either copy and pasted from another
workbook or simply typed in). There will be a range of cells where to enter
data (columns A:G) that will be unprotected; the rest of the worksheet will
be protected. Is there a sub routine that I could apply in the code window
that will allow the user to manipulate the input data in any way other than
deleting whole rows, whole columns, or removing cells by cutting them,
cutting rows or cutting columns. That way for columns A:G the user could
type/paste data, delete or clear contents, but not delete or cut
cells/rows/columns such that other cells would shift in the process. Any
advice would be greatly appreciated.

IP

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 50
Default Protect cells but allow for user input.

The user could still cut cells. How would I prevent this?

"Neptune Dinosaur" wrote:

All you need to do is unlock the cells that you want the user to be able to
input to, and Protect the sheet. That stops people from deleting any rows or
columns in the sheet, even rows & columns that have unlocked cells. Users
would still be able to delete the whole sheet, so to prevent that you would
Protect the workbook (This all works in version 2003, anyway).

By the way, if you are going to Protect, you should put a password on the
protection; otherwise it isn't really protection at all (like giving a
soldier a gun but no bullets).
--
Time is just the thing that keeps everything from happening all at once


"iperlovsky" wrote:

I want to create a form to input data (either copy and pasted from another
workbook or simply typed in). There will be a range of cells where to enter
data (columns A:G) that will be unprotected; the rest of the worksheet will
be protected. Is there a sub routine that I could apply in the code window
that will allow the user to manipulate the input data in any way other than
deleting whole rows, whole columns, or removing cells by cutting them,
cutting rows or cutting columns. That way for columns A:G the user could
type/paste data, delete or clear contents, but not delete or cut
cells/rows/columns such that other cells would shift in the process. Any
advice would be greatly appreciated.

IP

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 46
Default Protect cells but allow for user input.

Well, I don't really understand what the problem is with a user cutting the
contents of cells. You seem to be happy to let them delete or overwrite the
contents of cells. Is being able to cut the contents such a bad thing? It
doesn't "cut" the cell; just the contents.

I don't know of any way within Excel or VBA to prevent the use of "Cut" that
will not also prevent a user from editing and deleting the contents of cells
in the normal way using the keyboard. You could try posting your question on
the VBA site -someone might know a way of doing this via Windows. Functions
like Cut, Copy and Paste are actually operating system (Windows) functions
rather than Excel [or Word] functions.



- - - - - - -
Time is just the thing that keeps everything from happening all at once


"iperlovsky" wrote:

The user could still cut cells. How would I prevent this?

"Neptune Dinosaur" wrote:

All you need to do is unlock the cells that you want the user to be able to
input to, and Protect the sheet. That stops people from deleting any rows or
columns in the sheet, even rows & columns that have unlocked cells. Users
would still be able to delete the whole sheet, so to prevent that you would
Protect the workbook (This all works in version 2003, anyway).

By the way, if you are going to Protect, you should put a password on the
protection; otherwise it isn't really protection at all (like giving a
soldier a gun but no bullets).
--
Time is just the thing that keeps everything from happening all at once


"iperlovsky" wrote:

I want to create a form to input data (either copy and pasted from another
workbook or simply typed in). There will be a range of cells where to enter
data (columns A:G) that will be unprotected; the rest of the worksheet will
be protected. Is there a sub routine that I could apply in the code window
that will allow the user to manipulate the input data in any way other than
deleting whole rows, whole columns, or removing cells by cutting them,
cutting rows or cutting columns. That way for columns A:G the user could
type/paste data, delete or clear contents, but not delete or cut
cells/rows/columns such that other cells would shift in the process. Any
advice would be greatly appreciated.

IP

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
Protect Cells After Input - help with macro AJPendragon Excel Worksheet Functions 0 November 18th 08 10:24 PM
How to restrict user to input only one of multiple cells James Excel Worksheet Functions 1 August 28th 08 04:23 PM
Searching cells from user input masanovic Excel Discussion (Misc queries) 1 June 21st 08 11:13 AM
Prompt user for input and utilize that input ninner Excel Worksheet Functions 2 March 28th 07 09:44 PM
Have user input converted to uppercase in same cell as input? Shannonn New Users to Excel 1 June 20th 06 03:19 AM


All times are GMT +1. The time now is 12:38 PM.

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"