Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 38
Default Unprotect column

Hi all

I have a worksheet that is either unprotected (to allow editing) or
protected (to allow viewing only) depending on a user login and password.
However, unprotection allows access to the entire sheet and now I need to
permit one user to edit one column only.

Is there a way to unprotect a single column in an otherwise protected
worksheet?

Thanks in advance!
SB


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Unprotect column

In xl2002 and later. What version is the lowest that will need to work with
the sheet?

--
Regards,
Tom Ogilvy

"SueJB" wrote in message
...
Hi all

I have a worksheet that is either unprotected (to allow editing) or
protected (to allow viewing only) depending on a user login and password.
However, unprotection allows access to the entire sheet and now I need to
permit one user to edit one column only.

Is there a way to unprotect a single column in an otherwise protected
worksheet?

Thanks in advance!
SB




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 252
Default Unprotect column

Try something like:


If logon User = xxx then
Activesheet.unprotect Password:="Hello"
Range("C:C").Locked=False
Activesheet.Protect Password:="Hello"
End if

Then in the wbk_BeforeClose event, reverse this to lock your col C


"SueJB" wrote:

Hi all

I have a worksheet that is either unprotected (to allow editing) or
protected (to allow viewing only) depending on a user login and password.
However, unprotection allows access to the entire sheet and now I need to
permit one user to edit one column only.

Is there a way to unprotect a single column in an otherwise protected
worksheet?

Thanks in advance!
SB


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 38
Default Unprotect column

Hello Tom

The lowest version will be 2002 (which we are currently using) but I'll need
to port to 2003 later this year

Thanks for such a quick response
S

"Tom Ogilvy" wrote:

In xl2002 and later. What version is the lowest that will need to work with
the sheet?

--
Regards,
Tom Ogilvy

"SueJB" wrote in message
...
Hi all

I have a worksheet that is either unprotected (to allow editing) or
protected (to allow viewing only) depending on a user login and password.
However, unprotection allows access to the entire sheet and now I need to
permit one user to edit one column only.

Is there a way to unprotect a single column in an otherwise protected
worksheet?

Thanks in advance!
SB





  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 38
Default Unprotect column

That's great - and SO simple - why didn't I think of that?

Many thanks for such a quick response

Sue

"gocush" wrote:

Try something like:


If logon User = xxx then
Activesheet.unprotect Password:="Hello"
Range("C:C").Locked=False
Activesheet.Protect Password:="Hello"
End if

Then in the wbk_BeforeClose event, reverse this to lock your col C


"SueJB" wrote:

Hi all

I have a worksheet that is either unprotected (to allow editing) or
protected (to allow viewing only) depending on a user login and password.
However, unprotection allows access to the entire sheet and now I need to
permit one user to edit one column only.

Is there a way to unprotect a single column in an otherwise protected
worksheet?

Thanks in advance!
SB


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
Unprotect a worksheet Mayumdwl Excel Worksheet Functions 1 April 21st 09 12:30 AM
Unprotect in a macro Partly Void[_2_] Excel Discussion (Misc queries) 3 October 5th 08 10:45 AM
unprotect subtotals [email protected] Excel Worksheet Functions 1 November 22nd 07 01:03 PM
Unprotect Conditional Formatting Excel Discussion (Misc queries) 3 September 5th 05 02:49 PM
Password Unprotect Bob Tulk Excel Programming 0 July 29th 03 02:53 PM


All times are GMT +1. The time now is 02:06 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"