PC Review


Reply
Thread Tools Rate Thread

How can I protect cell from user entry but able to alter/clear in

 
 
Kermitp
Guest
Posts: n/a
 
      24th Apr 2008
I am working a project where I want to limit the user changes via either a
form or a macro. In other words I do not want the user to be able to alter a
cell's content directly.

I know I could hide the worksheet or columns but the user has to be able to
view their content without directly altering them.

I tried locking the cells and password protecting the worksheet but then
when I attempt to clear the cell content via macro I get an error message.
Is there way to set the cell property for protection or no protection? I have
searched help without much success.

Error message:

Run-time error '1004':
The cell or chart that you are trying to change is protected and
therefore read-only.

To modify a protected cell or chart, first remove protection using the
Unprotect Sheet command (Review tab, Changes group). You may be
prompted for a password

--
Kermit, long time windows Office user
 
Reply With Quote
 
 
 
 
Office_Novice
Guest
Posts: n/a
 
      24th Apr 2008
A modal form is likely your best option. A little more info would allow me to
help more.

"Kermitp" wrote:

> I am working a project where I want to limit the user changes via either a
> form or a macro. In other words I do not want the user to be able to alter a
> cell's content directly.
>
> I know I could hide the worksheet or columns but the user has to be able to
> view their content without directly altering them.
>
> I tried locking the cells and password protecting the worksheet but then
> when I attempt to clear the cell content via macro I get an error message.
> Is there way to set the cell property for protection or no protection? I have
> searched help without much success.
>
> Error message:
>
> Run-time error '1004':
> The cell or chart that you are trying to change is protected and
> therefore read-only.
>
> To modify a protected cell or chart, first remove protection using the
> Unprotect Sheet command (Review tab, Changes group). You may be
> prompted for a password
>
> --
> Kermit, long time windows Office user

 
Reply With Quote
 
Kermitp
Guest
Posts: n/a
 
      24th Apr 2008
I appreciate your response and I think I understand what you are saying but I
don't want to do that. If I go that far I would just create a VB app. which
is a long range plan.

Reason being is that today I supply the starting base excel spreadsheet to
which the users can add their own functions. However, there are some
thing(cells) that I do not allow them to alter.

After much searching I did find information on protecting and unprotecting
worksheets in VBA. So I can turn protecion on and off. However, that takes
away a lot ofthe functions a user can do on that worksheet.

I was hoping for some other method to control altering individual cells.

Thanks forthe response,
--
Kermit, long time windows Office user


"Office_Novice" wrote:

> A modal form is likely your best option. A little more info would allow me to
> help more.
>
> "Kermitp" wrote:
>
> > I am working a project where I want to limit the user changes via either a
> > form or a macro. In other words I do not want the user to be able to alter a
> > cell's content directly.
> >
> > I know I could hide the worksheet or columns but the user has to be able to
> > view their content without directly altering them.
> >
> > I tried locking the cells and password protecting the worksheet but then
> > when I attempt to clear the cell content via macro I get an error message.
> > Is there way to set the cell property for protection or no protection? I have
> > searched help without much success.
> >
> > Error message:
> >
> > Run-time error '1004':
> > The cell or chart that you are trying to change is protected and
> > therefore read-only.
> >
> > To modify a protected cell or chart, first remove protection using the
> > Unprotect Sheet command (Review tab, Changes group). You may be
> > prompted for a password
> >
> > --
> > Kermit, long time windows Office user

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
protect borders on a data entry cell dotcom Microsoft Excel Discussion 1 19th Sep 2009 01:49 PM
clear user form after entry willfeld Microsoft Excel Programming 11 1st May 2008 05:24 AM
How do I protect a Work sheet so a user can only alter certain cel =?Utf-8?B?Sm9lbA==?= Microsoft Excel Worksheet Functions 1 3rd Oct 2006 05:36 PM
Password protect data entry to cell Brian Microsoft Excel Programming 5 25th Apr 2004 10:42 PM
Need way to protect cell after data entry Ken Microsoft Excel Programming 2 25th Jul 2003 09:24 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:36 AM.