Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 54
Default Column password protection

Hi,

Is it possible to protect columns in a spreadsheet with a password?

I would like to hide the contents in specific columns from unauthorized users.

Thanks!
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 735
Default Column password protection

You can not protect specific parts of you worksheet with a password. However
you can lock/unlock specific cells, including whole columns, that when the
worksheet is protected (with or without a password); they can/cannot be
selected and /or edited.

You can of course hide a column which is very different to the above, if you
hide and then protect the sheet you cannot unhide.

I guess if you do not want the user to see the contents, then hide is the
best option.

The following will hide column E and then protect the sheet, (you can of
course do this manually without using a macro)

With Sheets("Sheet1")
.Columns("E:E").EntireColumn.Hidden = True
.Protect Password:="myPassword"
End With


--

Regards,
Nigel




"Anders" wrote in message
...
Hi,

Is it possible to protect columns in a spreadsheet with a password?

I would like to hide the contents in specific columns from unauthorized
users.

Thanks!


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
Password protection in macro ( Anybody can view my password in VB Sherees Excel Discussion (Misc queries) 2 January 24th 10 10:05 PM
Excel Data Protection- AKA: Sheet/Macro Password Protection Mushman(Woof!) Setting up and Configuration of Excel 0 December 29th 09 06:50 AM
Password protection Tanya508 Setting up and Configuration of Excel 2 August 3rd 06 09:26 PM
Password protection Steve C Excel Programming 1 June 7th 05 05:32 PM
password protection Matt Excel Programming 2 March 6th 04 09:19 PM


All times are GMT +1. The time now is 09:17 AM.

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

About Us

"It's about Microsoft Excel"