Solved

Lock specific columns

Posted on 2013-11-08
5
186 Views
Last Modified: 2013-11-08
Folks,
I would like to only locked some specific columns in my worksheet: Columns H:O
0
Comment
Question by:Frank Freese
  • 3
  • 2
5 Comments
 
LVL 22

Expert Comment

by:rspahitz
Comment Utility
The easiest way to do this is to select all of the other columns and unlock them (right-click and select Format cells, then click on the protection tab and de-selected the Lock checkbox.

With that done, turn on protection (Alt+H-O-P: Home tab, Cells group, Format selection, Protection item).  With that you will get a window, probably with the first two checkboxes selected.  Deselect the first one "Select locked cells" and click the OK button so that people can only select Unlocked cells.
0
 

Author Comment

by:Frank Freese
Comment Utility
Got a problem here. I incorrectly stated my objective. I meant to say that columns H:O need the width to be "frozen" not locked. My fault.

"Columns A - I" have some cells that are not locked and the worksheet is protected.
Is there a way that when a worksheet is activated you can code what columns are frozen, not locked for a specific column range, such as H:O?
In range H2:O18 I have those cells unlocked.
0
 
LVL 22

Accepted Solution

by:
rspahitz earned 500 total points
Comment Utility
I think the default for protection is that the column resizing (formatting) is also locked.
I don't know of any events that Excel provides to indicate that a column is resized so you'd have to lock it and provide your own mechanism (like an overlaid button) to allow users to resize parts.
0
 

Author Comment

by:Frank Freese
Comment Utility
rspahitz
thanks - not what I was wanting but not surprised.
Appreciate it!
0
 

Author Closing Comment

by:Frank Freese
Comment Utility
many thanks
0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Drop Down List with Unique/Distinct Values (Part II - ComboBox or ListBox and Data Validation List Bonus!) David Miller (dlmille) Intro This article focuses on delivering unique, sorted lists to list objects (e.g., ComboBox, ListBox) and Dat…
Convert between Excel file formats (.XLS, .XLSX, .XLSM) with/without macro option David Miller (dlmille) Intro Over this past Fall, I've had the opportunity to see several similar requests and have developed a couple related solutions associate…
This Micro Tutorial demonstrates how to create Excel charts: column, area, line, bar, and scatter charts. Formatting tips are provided as well.
This Micro Tutorial will demonstrate how to create pivot charts out of a data set. I also added a drop-down menu which allows to choose from different categories in the data set and the chart will automatically update.

728 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now