Solved

Lock specific columns

Posted on 2013-11-08
5
225 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 22

Expert Comment

by:rspahitz
ID: 39634025
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
ID: 39634127
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
ID: 39634731
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
ID: 39634924
rspahitz
thanks - not what I was wanting but not surprised.
Appreciate it!
0
 

Author Closing Comment

by:Frank Freese
ID: 39634925
many thanks
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article will guide you to convert a grid from a picture into Excel format using Microsoft OneNote and no other 3rd party application.
Freeze panes is an option within all variants of Excel to enable parts of a sheet to remain stationary when the cursor is in another part of the sheet. This is a very useful feature which is overlooked or under used.
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
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.

737 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