PC Review


Reply
 
 
kabulking@gmail.com
Guest
Posts: n/a
 
      14th Jul 2007
dearr
i have a sheet that is being updated from a form.
i want the button on the form to lock the cells in which data has been
entered and the empty cells remain unlock.

any help will be appreciated

thanks
naweed

 
Reply With Quote
 
 
 
 
=?Utf-8?B?VG9tIE9naWx2eQ==?=
Guest
Posts: n/a
 
      14th Jul 2007
ActiveSheet.Unprotect
set rng = ActiveSheet.Cells.SpecialCells(xlConstants)
rng.Locked = True
ActiveSheet.Protect

--
Regards,
Tom Ogilvy


"(E-Mail Removed)" wrote:

> dearr
> i have a sheet that is being updated from a form.
> i want the button on the form to lock the cells in which data has been
> entered and the empty cells remain unlock.
>
> any help will be appreciated
>
> thanks
> naweed
>
>

 
Reply With Quote
 
kabulking@gmail.com
Guest
Posts: n/a
 
      15th Jul 2007
On Jul 14, 9:42 pm, Tom Ogilvy <TomOgi...@discussions.microsoft.com>
wrote:
> ActiveSheet.Unprotect
> set rng = ActiveSheet.Cells.SpecialCells(xlConstants)
> rng.Locked = True
> ActiveSheet.Protect
>
> --
> Regards,
> Tom Ogilvy
>
>
>
> "kabulk...@gmail.com" wrote:
> > dearr
> > i have a sheet that is being updated from a form.
> > i want the button on the form to lock the cells in which data has been
> > entered and the empty cells remain unlock.

>
> > any help will be appreciated

>
> > thanks
> > naweed- Hide quoted text -

>
> - Show quoted text -


it worked perfectly.
Thanks alot

best regards,
naweed

 
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
I have lock a wookbook but one cell does not want to lock it =?Utf-8?B?bWltaQ==?= Microsoft Excel Misc 2 21st Jan 2007 10:59 PM
I have lock a wookbook but one cell does not want to lock it =?Utf-8?B?bWltaQ==?= Microsoft Excel Misc 1 21st Jan 2007 09:44 AM
Lock data in a cell a specific cell based on selection on other ce =?Utf-8?B?Q3JpbXNvblBsYWd1ZTI5?= Microsoft Excel Worksheet Functions 0 10th May 2006 11:06 AM
Re: How lock cell format, but not lock cell contents? Dave Peterson Microsoft Excel Worksheet Functions 2 10th Sep 2003 03:17 AM
How lock cell format, but not lock cell contents? Gavin Microsoft Excel Worksheet Functions 0 9th Sep 2003 09:35 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:14 PM.